-
-
请问 某些结构体 ddk 定义里面的和wrk里定义的为什么不一样?
-
发表于:
2011-4-26 01:24
3989
-
请问 某些结构体 ddk 定义里面的和wrk里定义的为什么不一样?
在windbg中看到的 _DISPATCHER_HEADER和_KWAIT_BLOCK结构分析
kd> dt nt!_kwait_block
+0x000 WaitListEntry : _LIST_ENTRY
+0x008 Thread : Ptr32 _KTHREAD
+0x00c Object : Ptr32 Void
+0x010 NextWaitBlock : Ptr32 _KWAIT_BLOCK
+0x014 WaitKey : Uint2B
+0x016 WaitType : Uint2B
在WRK中定义如下:
//
// Wait block
//
// begin_ntddk begin_wdm begin_nthal begin_ntifs begin_ntosp
typedef struct _KWAIT_BLOCK {
LIST_ENTRY WaitListEntry;
struct _KTHREAD *Thread;
PVOID Object;
struct _KWAIT_BLOCK *NextWaitBlock;
USHORT WaitKey;
UCHAR WaitType;
UCHAR SpareByte;
#if defined(_AMD64_)
LONG SpareLong;
#endif
} KWAIT_BLOCK, *PKWAIT_BLOCK, *PRKWAIT_BLOCK;
请问 ddk 定义里面的和wrk里定义的为什么不一样?
[培训]科锐逆向工程师培训第53期2025年7月8日开班!