[XDK]
[reactos.git] / include / xdk / pstypes.h
1 /******************************************************************************
2 * Process Manager Types *
3 ******************************************************************************/
4
5 #define QUOTA_LIMITS_HARDWS_MIN_ENABLE 0x00000001
6 #define QUOTA_LIMITS_HARDWS_MIN_DISABLE 0x00000002
7 #define QUOTA_LIMITS_HARDWS_MAX_ENABLE 0x00000004
8 #define QUOTA_LIMITS_HARDWS_MAX_DISABLE 0x00000008
9 #define QUOTA_LIMITS_USE_DEFAULT_LIMITS 0x00000010
10
11 /* Thread Access Rights */
12 #define THREAD_TERMINATE 0x0001
13 #define THREAD_SUSPEND_RESUME 0x0002
14 #define THREAD_ALERT 0x0004
15 #define THREAD_GET_CONTEXT 0x0008
16 #define THREAD_SET_CONTEXT 0x0010
17 #define THREAD_SET_INFORMATION 0x0020
18 #define THREAD_SET_LIMITED_INFORMATION 0x0400
19 #define THREAD_QUERY_LIMITED_INFORMATION 0x0800
20
21 #define PROCESS_DUP_HANDLE (0x0040)
22
23 #if (NTDDI_VERSION >= NTDDI_VISTA)
24 #define PROCESS_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0xFFFF)
25 #else
26 #define PROCESS_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0xFFF)
27 #endif
28
29 #if (NTDDI_VERSION >= NTDDI_VISTA)
30 #define THREAD_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0xFFFF)
31 #else
32 #define THREAD_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0x3FF)
33 #endif
34
35 #define ES_SYSTEM_REQUIRED 0x00000001
36 #define ES_DISPLAY_REQUIRED 0x00000002
37 #define ES_USER_PRESENT 0x00000004
38 #define ES_CONTINUOUS 0x80000000
39
40 #define LOW_PRIORITY 0
41 #define LOW_REALTIME_PRIORITY 16
42 #define HIGH_PRIORITY 31
43 #define MAXIMUM_PRIORITY 32
44