https://git.reactos.org/?p=reactos.git;a=commitdiff;h=d176ddedd6fb165cb8a954...
commit d176ddedd6fb165cb8a954d0069df0274aec2871 Author: Timo Kreuzer timo@reactos.org AuthorDate: Wed Aug 16 08:34:47 2017 +0200
[XDK] Fix KWAIT_BLOCK definition for Win8+ --- sdk/include/xdk/ketypes.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
diff --git a/sdk/include/xdk/ketypes.h b/sdk/include/xdk/ketypes.h index 710fd70e0e..5e276c08c7 100644 --- a/sdk/include/xdk/ketypes.h +++ b/sdk/include/xdk/ketypes.h @@ -442,6 +442,20 @@ typedef enum _KWAIT_REASON {
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; @@ -455,6 +469,7 @@ typedef struct _KWAIT_BLOCK { #if defined(_WIN64) LONG SpareLong; #endif +#endif } KWAIT_BLOCK, *PKWAIT_BLOCK, *PRKWAIT_BLOCK;
typedef enum _KINTERRUPT_MODE {