-
-
DbgPrint 打印不出 driver->DriverName 属性
-
发表于:
2016-3-27 17:53
7472
-
DbgPrint 打印不出 driver->DriverName 属性
代码如下,调试信息中没有看到有打印 DriverName 的信息,但是 DriverSize 打印出来了,请问是为什么?
#include <ntddk.h>
VOID DriverUnload(PDRIVER_OBJECT driver)
{
}
NTSTATUS DriverEntry(PDRIVER_OBJECT driver, PUNICODE_STRING reg_path)
{
DbgPrint("DriverName: %wZ\r\n", driver->DriverName);
DbgPrint("DriverSize: %ld\r\n", driver->DriverSize);
driver->DriverUnload = DriverUnload;
return STATUS_SUCCESS;
}
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!