Write my own version of DebugView
问题 I wrote a Windows driver (file system). All my logs print by the DbgPrint function. With the DebugView program ( Capture Kernel - on) I can see all my logs. I want to show/save its logs. So, I want to listen to kernel messages. I tried to write some: struct DbWinBuffer { DWORD dwProcessId; char data[4096 - sizeof(DWORD)]; }; DbWinBuffer* dbBuffer; HANDLE hAckEvent; HANDLE hEvent; HANDLE hSharedFile; SECURITY_DESCRIPTOR sd; SECURITY_ATTRIBUTES sa; sa.nLength = sizeof(SECURITY_ATTRIBUTES); sa