https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3736938030c97d0ea4d1786a13f1406a5f2ca2cf

commit 3736938030c97d0ea4d1786a13f1406a5f2ca2cf
Author:     Hermès Bélusca-Maïto <hermes.belusca-ma...@reactos.org>
AuthorDate: Fri Oct 25 22:21:45 2024 +0200
Commit:     Hermès Bélusca-Maïto <hermes.belusca-ma...@reactos.org>
CommitDate: Fri Oct 25 22:27:37 2024 +0200

    [PSDK] winbase.h: Add other missing CreateProcess() dwCreationFlags values
    
    Vista:
      INHERIT_CALLER_PRIORITY
      CREATE_PROTECTED_PROCESS
      EXTENDED_STARTUPINFO_PRESENT
      PROCESS_MODE_BACKGROUND_BEGIN
      PROCESS_MODE_BACKGROUND_END
    
    Win7: INHERIT_PARENT_AFFINITY
    
    Win 10.0.17134.0 (Redstone 4): CREATE_SECURE_PROCESS
    
    References:
    
https://abi-laboratory.pro/compatibility/Windows_5.0_to_Windows_6.0/x86_64/headers_diff/kernel32.dll/diff.html
    
https://abi-laboratory.pro/compatibility/Windows_6.0_to_Windows_7.0/x86_64/headers_diff/kernel32.dll/diff.html
    https://github.com/hughbe/windows-sdk-headers
---
 sdk/include/psdk/winbase.h | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/sdk/include/psdk/winbase.h b/sdk/include/psdk/winbase.h
index 88ba3a445ac..918d3e68a21 100644
--- a/sdk/include/psdk/winbase.h
+++ b/sdk/include/psdk/winbase.h
@@ -191,6 +191,23 @@ extern "C" {
 #define CREATE_FORCEDOS                   0x00002000
 #define BELOW_NORMAL_PRIORITY_CLASS       0x00004000
 #define ABOVE_NORMAL_PRIORITY_CLASS       0x00008000
+
+#if (_WIN32_WINNT >= _WIN32_WINNT_WIN7)
+#define INHERIT_PARENT_AFFINITY           0x00010000
+#endif // _WIN32_WINNT_WIN7
+
+#if (_WIN32_WINNT >= _WIN32_WINNT_VISTA)
+#define INHERIT_CALLER_PRIORITY           0x00020000 // Deprecated
+#define CREATE_PROTECTED_PROCESS          0x00040000
+#define EXTENDED_STARTUPINFO_PRESENT      0x00080000
+#define PROCESS_MODE_BACKGROUND_BEGIN     0x00100000
+#define PROCESS_MODE_BACKGROUND_END       0x00200000
+#endif // _WIN32_WINNT_VISTA
+
+#if (NTDDI_VERSION >= NTDDI_WIN10_RS4)
+#define CREATE_SECURE_PROCESS             0x00400000
+#endif // NTDDI_WIN10_RS4
+
 #define CREATE_BREAKAWAY_FROM_JOB         0x01000000
 #define CREATE_PRESERVE_CODE_AUTHZ_LEVEL  0x02000000
 #define CREATE_DEFAULT_ERROR_MODE         0x04000000

Reply via email to