https://git.reactos.org/?p=reactos.git;a=commitdiff;h=1246f8b5e68fcb9c5dff5…
commit 1246f8b5e68fcb9c5dff55154b2ad3f134394430
Author: Amine Khaldi <amine.khaldi(a)reactos.org>
AuthorDate: Tue Apr 3 13:35:01 2018 +0100
Commit: Amine Khaldi <amine.khaldi(a)reactos.org>
CommitDate: Tue Apr 3 13:35:01 2018 +0100
[PSDK][XDK] Add some missing definitions. CORE-14434
---
sdk/include/psdk/winbase.h | 27 +++++++++++++++++++++++++--
sdk/include/xdk/ntbasedef.h | 1 +
sdk/include/xdk/winnt_old.h | 5 +++++
3 files changed, 31 insertions(+), 2 deletions(-)
diff --git a/sdk/include/psdk/winbase.h b/sdk/include/psdk/winbase.h
index e8c14cfddc..8e46723667 100644
--- a/sdk/include/psdk/winbase.h
+++ b/sdk/include/psdk/winbase.h
@@ -1724,10 +1724,33 @@ _Ret_maybenull_ HANDLE WINAPI CreateSemaphoreExA(_In_opt_
LPSECURITY_ATTRIBUTES,
HANDLE WINAPI CreateSemaphoreExW(LPSECURITY_ATTRIBUTES,LONG,LONG,LPCWSTR,DWORD,DWORD);
#endif
DWORD WINAPI CreateTapePartition(_In_ HANDLE, _In_ DWORD, _In_ DWORD, _In_ DWORD);
+
#if (_WIN32_WINNT >= 0x0500)
+
HANDLE WINAPI CreateTimerQueue(void);
-BOOL WINAPI
CreateTimerQueueTimer(PHANDLE,HANDLE,WAITORTIMERCALLBACK,PVOID,DWORD,DWORD,ULONG);
-#endif
+
+BOOL
+WINAPI
+CreateTimerQueueTimer(
+ _Outptr_ PHANDLE,
+ _In_opt_ HANDLE,
+ _In_ WAITORTIMERCALLBACK,
+ _In_opt_ PVOID,
+ _In_ DWORD,
+ _In_ DWORD,
+ _In_ ULONG);
+
+_Must_inspect_result_
+BOOL
+WINAPI
+ChangeTimerQueueTimer(
+ _In_opt_ HANDLE TimerQueue,
+ _Inout_ HANDLE Timer,
+ _In_ ULONG DueTime,
+ _In_ ULONG Period);
+
+#endif /* (_WIN32_WINNT >= 0x0500) */
+
HANDLE WINAPI
CreateThread(LPSECURITY_ATTRIBUTES,DWORD,LPTHREAD_START_ROUTINE,PVOID,DWORD,PDWORD);
_Ret_maybenull_ HANDLE WINAPI CreateWaitableTimerA(_In_opt_ LPSECURITY_ATTRIBUTES, _In_
BOOL, _In_opt_ LPCSTR);
_Ret_maybenull_ HANDLE WINAPI CreateWaitableTimerW(_In_opt_ LPSECURITY_ATTRIBUTES, _In_
BOOL, _In_opt_ LPCWSTR);
diff --git a/sdk/include/xdk/ntbasedef.h b/sdk/include/xdk/ntbasedef.h
index 7a1cded3cc..67ddadcfcf 100644
--- a/sdk/include/xdk/ntbasedef.h
+++ b/sdk/include/xdk/ntbasedef.h
@@ -919,6 +919,7 @@ $endif(_WINNT_)
#define PRODUCT_CORE_SINGLELANGUAGE 0x00000064
#define PRODUCT_CORE 0x00000065
#define PRODUCT_PROFESSIONAL_WMC 0x00000067
+#define PRODUCT_ENTERPRISE_S_N_EVALUATION 0x00000082
#define PRODUCT_UNLICENSED 0xABCDABCD
/* LangID and NLS */
diff --git a/sdk/include/xdk/winnt_old.h b/sdk/include/xdk/winnt_old.h
index f03582ab88..06299a6b23 100644
--- a/sdk/include/xdk/winnt_old.h
+++ b/sdk/include/xdk/winnt_old.h
@@ -578,6 +578,7 @@
#define SEC_NOCACHE 0x10000000
#define SEC_WRITECOMBINE 0x40000000
#define SEC_LARGE_PAGES 0x80000000
+#define SEC_IMAGE_NO_EXECUTE (SEC_IMAGE | SEC_NOCACHE)
#define SECTION_MAP_EXECUTE_EXPLICIT 0x0020
#define SECTION_EXTEND_SIZE 16
#define SECTION_MAP_READ 4
@@ -1187,6 +1188,9 @@ typedef struct _LDT_ENTRY {
#define CONTEXT_DEBUG_REGISTERS (CONTEXT_i386|0x00000010L)
#define CONTEXT_EXTENDED_REGISTERS (CONTEXT_i386|0x00000020L)
#define CONTEXT_FULL (CONTEXT_CONTROL|CONTEXT_INTEGER|CONTEXT_SEGMENTS)
+#define CONTEXT_ALL (CONTEXT_CONTROL | CONTEXT_INTEGER | CONTEXT_SEGMENTS | \
+ CONTEXT_FLOATING_POINT | CONTEXT_DEBUG_REGISTERS | \
+ CONTEXT_EXTENDED_REGISTERS)
#define MAXIMUM_SUPPORTED_EXTENSION 512
#define EXCEPTION_READ_FAULT 0
@@ -2995,6 +2999,7 @@ typedef enum ReplacesCorHdrNumericDefines {
COMIMAGE_FLAGS_STRONGNAMESIGNED = 0x00000008,
COMIMAGE_FLAGS_NATIVE_ENTRYPOINT = 0x00000010,
COMIMAGE_FLAGS_TRACKDEBUGDATA = 0x00010000,
+ COMIMAGE_FLAGS_32BITPREFERRED = 0x00020000,
COR_VERSION_MAJOR_V2 = 2,
COR_VERSION_MAJOR = COR_VERSION_MAJOR_V2,
COR_VERSION_MINOR = 0,