Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我想知道是否有人知道 Debugtrace 在 WDDK 给出的驱动程序示例中的作用。我在网上和源代码中都找不到这个函数,谢谢。
DebugTrace( DEBUG_TRACE_ALL_IO, ("[Ctx]: CtxPreCreate -> Enter (Cbd = %p, FileObject = %p)\n", Cbd, FltObjects->FileObject) );
它#define在源文件中。它的小包装器DbgPrint在调试器窗口中打印消息。
#define
DbgPrint
在一些示例源文件中,我发现:
#define DebugTrace(Level, Data) \ if ((Level) & Globals.DebugLevel) { \ Data \ }