Module: Process::Constants
Constant Summary collapse
- ABOVE_NORMAL_PRIORITY_CLASS =
Priority constants
0x0008000
- BELOW_NORMAL_PRIORITY_CLASS =
0x0004000
- HIGH_PRIORITY_CLASS =
0x0000080
- IDLE_PRIORITY_CLASS =
0x0000040
- NORMAL_PRIORITY_CLASS =
0x0000020
- REALTIME_PRIORITY_CLASS =
0x0000010
- INVALID_HANDLE_VALUE =
Error constants
FFI::Pointer.new(-1).address
- ERROR_ACCESS_DENIED =
0x00000005
- PROCESS_TERMINATE =
Process Access Rights
0x00000001
- PROCESS_SET_INFORMATION =
0x00000200
- PROCESS_QUERY_INFORMATION =
0x00000400
- PROCESS_ALL_ACCESS =
0x001F0FFF
- PROCESS_VM_READ =
0x00000010
- INFINITE =
Process wait time for Process.kill
0xFFFFFFFF
- CREATE_BREAKAWAY_FROM_JOB =
Process creation flags
0x01000000
- CREATE_DEFAULT_ERROR_MODE =
0x04000000
- CREATE_NEW_CONSOLE =
0x00000010
- CREATE_NEW_PROCESS_GROUP =
0x00000200
- CREATE_NO_WINDOW =
0x08000000
- CREATE_PROTECTED_PROCESS =
0x00040000
- CREATE_PRESERVE_CODE_AUTHZ_LEVEL =
0x02000000
- CREATE_SEPARATE_WOW_VDM =
0x00000800
- CREATE_SHARED_WOW_VDM =
0x00001000
- CREATE_SUSPENDED =
0x00000004
- CREATE_UNICODE_ENVIRONMENT =
0x00000400
- DEBUG_ONLY_THIS_PROCESS =
0x00000002
- DEBUG_PROCESS =
0x00000001
- DETACHED_PROCESS =
0x00000008
- INHERIT_PARENT_AFFINITY =
0x00010000
- STARTF_USESHOWWINDOW =
0x00000001
- STARTF_USESIZE =
0x00000002
- STARTF_USEPOSITION =
0x00000004
- STARTF_USECOUNTCHARS =
0x00000008
- STARTF_USEFILLATTRIBUTE =
0x00000010
- STARTF_RUNFULLSCREEN =
0x00000020
- STARTF_FORCEONFEEDBACK =
0x00000040
- STARTF_FORCEOFFFEEDBACK =
0x00000080
- STARTF_USESTDHANDLES =
0x00000100
- STARTF_USEHOTKEY =
0x00000200
- STARTF_TITLEISLINKNAME =
0x00000800
- STARTF_TITLEISAPPID =
0x00001000
- STARTF_PREVENTPINNING =
0x00002000
- LOGON_WITH_PROFILE =
0x00000001
- LOGON_NETCREDENTIALS_ONLY =
0x00000002
- SHUTDOWN_NORETRY =
0x00000001
- TokenUser =
Security
1
- TOKEN_QUERY =
0x00000008
- PRIO_PROCESS =
Define these for Windows. They are not actually used but are defined for interface compatibility.
0
- PRIO_PGRP =
1
- PRIO_USER =
2
- RLIMIT_CPU =
Define these for Windows
0
- RLIMIT_FSIZE =
PerProcessUserTimeLimit
1
- RLIMIT_AS =
Hard coded at 4TB - 64K (assumes NTFS)
5
- RLIMIT_RSS =
ProcessMemoryLimit
5
- RLIMIT_VMEM =
ProcessMemoryLimit
5
- JOB_OBJECT_SET_ATTRIBUTES =
Job constants
0x00000002
- JOB_OBJECT_QUERY =
0x00000004
- JOB_OBJECT_LIMIT_PROCESS_TIME =
0x00000002
- JOB_OBJECT_LIMIT_PROCESS_MEMORY =
0x00000100
- JobObjectExtendedLimitInformation =
9
- CTRL_C_EVENT =
Console Events
0
- CTRL_BREAK_EVENT =
1
- HANDLE_FLAG_INHERIT =
Miscellaneous
0x00000001
- SEM_FAILCRITICALERRORS =
0x00000001
- SEM_NOGPFAULTERRORBOX =
0x00000002
- STILL_ACTIVE =
GetExitCodeProcess
259
- TH32CS_SNAPHEAPLIST =
Snapshot constants
0x00000001
- TH32CS_SNAPPROCESS =
0x00000002
- TH32CS_SNAPTHREAD =
0x00000004
- TH32CS_SNAPMODULE =
0x00000008
- ERROR_NO_MORE_FILES =
0x00000018