[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
This commit is contained in:
Hermès Bélusca-Maïto 2024-10-25 22:21:45 +02:00
parent a27227b831
commit 3736938030
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -191,6 +191,23 @@ extern "C" {
#define CREATE_FORCEDOS 0x00002000 #define CREATE_FORCEDOS 0x00002000
#define BELOW_NORMAL_PRIORITY_CLASS 0x00004000 #define BELOW_NORMAL_PRIORITY_CLASS 0x00004000
#define ABOVE_NORMAL_PRIORITY_CLASS 0x00008000 #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_BREAKAWAY_FROM_JOB 0x01000000
#define CREATE_PRESERVE_CODE_AUTHZ_LEVEL 0x02000000 #define CREATE_PRESERVE_CODE_AUTHZ_LEVEL 0x02000000
#define CREATE_DEFAULT_ERROR_MODE 0x04000000 #define CREATE_DEFAULT_ERROR_MODE 0x04000000