[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.
This commit is contained in:
Hermès Bélusca-Maïto 2022-01-11 00:11:37 +01:00
parent 75d33bf148
commit 0889182d66
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
2 changed files with 21 additions and 6 deletions

View file

@ -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
//

View file

@ -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;