https://git.reactos.org/?p=reactos.git;a=commitdiff;h=0889182d665bc00ecb163…
commit 0889182d665bc00ecb163809ffc51866a1894cb0
Author: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
AuthorDate: Tue Jan 11 00:11:37 2022 +0100
Commit: Hermès Bélusca-Maïto <hermes.belusca-maito(a)reactos.org>
CommitDate: Fri Jan 14 23:59:14 2022 +0100
[SDK:NDK] Add the NX_SUPPORT_* flags for the SharedUserData.NXSupportPolicy member.
(#4111)
And move those in the XDK to a better place, adding versioning as well.
---
sdk/include/ndk/ketypes.h | 12 +++++++++++-
sdk/include/xdk/ketypes.h | 15 ++++++++++-----
2 files changed, 21 insertions(+), 6 deletions(-)
diff --git a/sdk/include/ndk/ketypes.h b/sdk/include/ndk/ketypes.h
index 0fba8d3455f..255ba53a1c9 100644
--- a/sdk/include/ndk/ketypes.h
+++ b/sdk/include/ndk/ketypes.h
@@ -209,7 +209,7 @@ typedef struct _FIBER /* Field
offsets: */
#define DISPATCH_LENGTH 106
#endif
-#else
+#else // NTOS_MODE_USER
//
// KPROCESSOR_MODE Type
@@ -401,8 +401,18 @@ typedef enum _ALTERNATIVE_ARCHITECTURE_TYPE
EndAlternatives
} ALTERNATIVE_ARCHITECTURE_TYPE;
+//
+// Flags for NXSupportPolicy
+//
+#if (NTDDI_VERSION >= NTDDI_WINXPSP2)
+#define NX_SUPPORT_POLICY_ALWAYSOFF 0
+#define NX_SUPPORT_POLICY_ALWAYSON 1
+#define NX_SUPPORT_POLICY_OPTIN 2
+#define NX_SUPPORT_POLICY_OPTOUT 3
#endif
+#endif // NTOS_MODE_USER
+
//
// Thread States
//
diff --git a/sdk/include/xdk/ketypes.h b/sdk/include/xdk/ketypes.h
index 23a05de1b68..2b0c99a867f 100644
--- a/sdk/include/xdk/ketypes.h
+++ b/sdk/include/xdk/ketypes.h
@@ -1087,11 +1087,6 @@ typedef struct _NT_TIB64 {
ULONG64 Self;
} NT_TIB64,*PNT_TIB64;
-#define NX_SUPPORT_POLICY_ALWAYSOFF 0
-#define NX_SUPPORT_POLICY_ALWAYSON 1
-#define NX_SUPPORT_POLICY_OPTIN 2
-#define NX_SUPPORT_POLICY_OPTOUT 3
-
_IRQL_requires_same_
_Function_class_(EXPAND_STACK_CALLOUT)
typedef VOID
@@ -1147,6 +1142,16 @@ typedef struct _XSTATE_CONFIGURATION {
#define MAX_WOW64_SHARED_ENTRIES 16
+//
+// Flags for NXSupportPolicy
+//
+#if (NTDDI_VERSION >= NTDDI_WINXPSP2)
+#define NX_SUPPORT_POLICY_ALWAYSOFF 0
+#define NX_SUPPORT_POLICY_ALWAYSON 1
+#define NX_SUPPORT_POLICY_OPTIN 2
+#define NX_SUPPORT_POLICY_OPTOUT 3
+#endif
+
typedef struct _KUSER_SHARED_DATA {
ULONG TickCountLowDeprecated;
ULONG TickCountMultiplier;