mirror of
https://github.com/reactos/reactos.git
synced 2024-09-17 08:09:26 +00:00
40 lines
1.5 KiB
C
40 lines
1.5 KiB
C
|
/******************************************************************************
|
||
|
* Process Manager Types *
|
||
|
******************************************************************************/
|
||
|
|
||
|
#define QUOTA_LIMITS_HARDWS_MIN_ENABLE 0x00000001
|
||
|
#define QUOTA_LIMITS_HARDWS_MIN_DISABLE 0x00000002
|
||
|
#define QUOTA_LIMITS_HARDWS_MAX_ENABLE 0x00000004
|
||
|
#define QUOTA_LIMITS_HARDWS_MAX_DISABLE 0x00000008
|
||
|
#define QUOTA_LIMITS_USE_DEFAULT_LIMITS 0x00000010
|
||
|
|
||
|
/* Thread Access Rights */
|
||
|
#define THREAD_TERMINATE 0x0001
|
||
|
#define THREAD_SUSPEND_RESUME 0x0002
|
||
|
#define THREAD_ALERT 0x0004
|
||
|
#define THREAD_GET_CONTEXT 0x0008
|
||
|
#define THREAD_SET_CONTEXT 0x0010
|
||
|
#define THREAD_SET_INFORMATION 0x0020
|
||
|
#define THREAD_SET_LIMITED_INFORMATION 0x0400
|
||
|
#define THREAD_QUERY_LIMITED_INFORMATION 0x0800
|
||
|
|
||
|
#define PROCESS_DUP_HANDLE (0x0040)
|
||
|
|
||
|
#if (NTDDI_VERSION >= NTDDI_VISTA)
|
||
|
#define PROCESS_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0xFFFF)
|
||
|
#else
|
||
|
#define PROCESS_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0xFFF)
|
||
|
#endif
|
||
|
|
||
|
#if (NTDDI_VERSION >= NTDDI_VISTA)
|
||
|
#define THREAD_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0xFFFF)
|
||
|
#else
|
||
|
#define THREAD_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | 0x3FF)
|
||
|
#endif
|
||
|
|
||
|
#define LOW_PRIORITY 0
|
||
|
#define LOW_REALTIME_PRIORITY 16
|
||
|
#define HIGH_PRIORITY 31
|
||
|
#define MAXIMUM_PRIORITY 32
|
||
|
|