Skip to content

Commit d7fa429

Browse files
committed
[PSDK] winbase.h: Isolate the CreateProcess() dwCreationFlag values
1 parent c9a99bf commit d7fa429

File tree

1 file changed

+30
-24
lines changed

1 file changed

+30
-24
lines changed

sdk/include/psdk/winbase.h

Lines changed: 30 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -173,29 +173,36 @@ extern "C" {
173173
#define PIPE_CLIENT_END 0
174174
#define PIPE_SERVER_END 1
175175
#define PIPE_UNLIMITED_INSTANCES 255
176-
#define DEBUG_PROCESS 0x00000001
177-
#define DEBUG_ONLY_THIS_PROCESS 0x00000002
178-
#define CREATE_SUSPENDED 0x00000004
179-
#define DETACHED_PROCESS 0x00000008
180-
#define CREATE_NEW_CONSOLE 0x00000010
181-
#define NORMAL_PRIORITY_CLASS 0x00000020
182-
#define IDLE_PRIORITY_CLASS 0x00000040
183-
#define HIGH_PRIORITY_CLASS 0x00000080
184-
#define REALTIME_PRIORITY_CLASS 0x00000100
185-
#define CREATE_NEW_PROCESS_GROUP 0x00000200
186-
#define CREATE_UNICODE_ENVIRONMENT 0x00000400
187-
#define CREATE_SEPARATE_WOW_VDM 0x00000800
188-
#define CREATE_SHARED_WOW_VDM 0x00001000
189-
#define CREATE_FORCEDOS 0x00002000
190-
#define BELOW_NORMAL_PRIORITY_CLASS 0x00004000
191-
#define ABOVE_NORMAL_PRIORITY_CLASS 0x00008000
192-
#define CREATE_BREAKAWAY_FROM_JOB 0x01000000
193-
#define CREATE_PRESERVE_CODE_AUTHZ_LEVEL 0x02000000
194-
#define CREATE_DEFAULT_ERROR_MODE 0x04000000
195-
#define CREATE_NO_WINDOW 0x08000000
196-
#define PROFILE_USER 0x10000000
197-
#define PROFILE_KERNEL 0x20000000
198-
#define PROFILE_SERVER 0x40000000
176+
177+
/* CreateProcess() dwCreationFlags values */
178+
#define DEBUG_PROCESS 0x00000001
179+
#define DEBUG_ONLY_THIS_PROCESS 0x00000002
180+
#define CREATE_SUSPENDED 0x00000004
181+
#define DETACHED_PROCESS 0x00000008
182+
#define CREATE_NEW_CONSOLE 0x00000010
183+
#define NORMAL_PRIORITY_CLASS 0x00000020
184+
#define IDLE_PRIORITY_CLASS 0x00000040
185+
#define HIGH_PRIORITY_CLASS 0x00000080
186+
#define REALTIME_PRIORITY_CLASS 0x00000100
187+
#define CREATE_NEW_PROCESS_GROUP 0x00000200
188+
#define CREATE_UNICODE_ENVIRONMENT 0x00000400
189+
#define CREATE_SEPARATE_WOW_VDM 0x00000800
190+
#define CREATE_SHARED_WOW_VDM 0x00001000
191+
#define CREATE_FORCEDOS 0x00002000
192+
#define BELOW_NORMAL_PRIORITY_CLASS 0x00004000
193+
#define ABOVE_NORMAL_PRIORITY_CLASS 0x00008000
194+
#define CREATE_BREAKAWAY_FROM_JOB 0x01000000
195+
#define CREATE_PRESERVE_CODE_AUTHZ_LEVEL 0x02000000
196+
#define CREATE_DEFAULT_ERROR_MODE 0x04000000
197+
#define CREATE_NO_WINDOW 0x08000000
198+
#define PROFILE_USER 0x10000000
199+
#define PROFILE_KERNEL 0x20000000
200+
#define PROFILE_SERVER 0x40000000
201+
202+
/* CreateThread()/CreateRemoteThread() dwCreationFlags values */
203+
// #define CREATE_SUSPENDED 0x00000004 // See above
204+
#define STACK_SIZE_PARAM_IS_A_RESERVATION 0x00010000
205+
199206
#define CREATE_NEW 1
200207
#define CREATE_ALWAYS 2
201208
#define OPEN_EXISTING 3
@@ -574,7 +581,6 @@ extern "C" {
574581
#define FIBER_FLAG_FLOAT_SWITCH 0x1
575582
#endif
576583
#define FLS_OUT_OF_INDEXES 0xFFFFFFFF
577-
#define STACK_SIZE_PARAM_IS_A_RESERVATION 0x00010000
578584
#if (_WIN32_WINNT >= 0x0600)
579585
#define MAX_RESTART_CMD_LINE 0x800
580586
#define RESTART_CYCLICAL 0x1

0 commit comments

Comments
 (0)