[PSDK][XDK] Add some missing definitions. CORE-14434
authorAmine Khaldi <amine.khaldi@reactos.org>
Tue, 3 Apr 2018 12:35:01 +0000 (13:35 +0100)
committerAmine Khaldi <amine.khaldi@reactos.org>
Tue, 3 Apr 2018 12:35:01 +0000 (13:35 +0100)
sdk/include/psdk/winbase.h
sdk/include/xdk/ntbasedef.h
sdk/include/xdk/winnt_old.h

index e8c14cf..8e46723 100644 (file)
@@ -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);
index 7a1cded..67ddadc 100644 (file)
@@ -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 */
index f03582a..06299a6 100644 (file)
 #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,