Debug Messages from the Windows Kernel Drivers?
I am using DbgPrint and DebugView currently, but it this the official way to observe the drivers behaviour? Does anybody know if and where kernel log files are hidden in the Windows System (like /var/log and dmesg only windows-ish?)
I for my part are currently using Vista, but there probably is some standard or hidden way of logging which is much older but still valid.
There is an API for the event log in kernel mode.
See IoAllocateErrorLogEntry and IoWriteErrorLogEntry.
I don’t know if they are slow or fast.
You should use DbgPrint for trace calls and use WinDbg from the Windows kernel debugging tools for debugging your drivers. WinDbg is a really good debugger, which will help you greatly.
PS: this is not hidden in any way. See the WDK documentation for details.