typedef struct _KWAIT_BLOCK {
LIST_ENTRY WaitListEntry;
+#if (NTDDI_VERSION >= NTDDI_WIN8)
+ UCHAR WaitType;
+ volatile UCHAR BlockState;
+ USHORT WaitKey;
+#ifdef _WIN64
+ LONG SpareLong;
+#endif
+ union {
+ struct _KTHREAD *Thread;
+ struct _KQUEUE *NotificationQueue;
+ };
+ PVOID Object;
+ PVOID SparePtr;
+#else
struct _KTHREAD *Thread;
PVOID Object;
struct _KWAIT_BLOCK *NextWaitBlock;
#if defined(_WIN64)
LONG SpareLong;
#endif
+#endif
} KWAIT_BLOCK, *PKWAIT_BLOCK, *PRKWAIT_BLOCK;
typedef enum _KINTERRUPT_MODE {