diff options
author | James <james_g_k@hotmail.co.uk> | 2017-11-08 14:18:59 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2017-11-08 14:18:59 (GMT) |
commit | b5d9e0811463f3b28ba355a9e0bee7f1682854e3 (patch) | |
tree | 7e69240929fc485f37e70c5d5336d7d873755ed5 /Modules/_winapi.c | |
parent | 54cc0c0789af8ff2396cb19095b7ab269f2bc06c (diff) | |
download | cpython-b5d9e0811463f3b28ba355a9e0bee7f1682854e3.zip cpython-b5d9e0811463f3b28ba355a9e0bee7f1682854e3.tar.gz cpython-b5d9e0811463f3b28ba355a9e0bee7f1682854e3.tar.bz2 |
bpo-31884 subprocess: add Windows constants for process priority (#4150)
Diffstat (limited to 'Modules/_winapi.c')
-rw-r--r-- | Modules/_winapi.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Modules/_winapi.c b/Modules/_winapi.c index 7e8d4e3..0a1d139 100644 --- a/Modules/_winapi.c +++ b/Modules/_winapi.c @@ -1595,6 +1595,18 @@ PyInit__winapi(void) WINAPI_CONSTANT(F_DWORD, WAIT_OBJECT_0); WINAPI_CONSTANT(F_DWORD, WAIT_ABANDONED_0); WINAPI_CONSTANT(F_DWORD, WAIT_TIMEOUT); + + WINAPI_CONSTANT(F_DWORD, ABOVE_NORMAL_PRIORITY_CLASS); + WINAPI_CONSTANT(F_DWORD, BELOW_NORMAL_PRIORITY_CLASS); + WINAPI_CONSTANT(F_DWORD, HIGH_PRIORITY_CLASS); + WINAPI_CONSTANT(F_DWORD, IDLE_PRIORITY_CLASS); + WINAPI_CONSTANT(F_DWORD, NORMAL_PRIORITY_CLASS); + WINAPI_CONSTANT(F_DWORD, REALTIME_PRIORITY_CLASS); + + WINAPI_CONSTANT(F_DWORD, CREATE_NO_WINDOW); + WINAPI_CONSTANT(F_DWORD, DETACHED_PROCESS); + WINAPI_CONSTANT(F_DWORD, CREATE_DEFAULT_ERROR_MODE); + WINAPI_CONSTANT(F_DWORD, CREATE_BREAKAWAY_FROM_JOB); WINAPI_CONSTANT("i", NULL); |