Processes.inc

This file defines structures and cosntants for process management functions of PwnOS.

See Also

Authors

  • Neil G.  Dickson
Summary
Processes.incThis file defines structures and cosntants for process management functions of PwnOS.
PROCESSSTRUCTThis structure defines the state of a process.
Constants
Process PrioritiesThese constants define thread priorities for use in PROCESSSTRUCT.PriorityLevel.
Process Creation FlagsThese constants define flags for the Flags parameter of CreateProcess.

PROCESSSTRUCT

This structure defines the state of a process.

Members

HandleTypeHANDLE_TYPE_PROCESS
PriorityLevelpriority of the process; see Process Priorities
pThreadListhandle of the first thread in the thread list
hNextSiblinghandle of the next process in the process list (see <pProcessList>)
Flagsmiscellaneous status flags; none are defined at this time
Summary
Constants
Process PrioritiesThese constants define thread priorities for use in PROCESSSTRUCT.PriorityLevel.
Process Creation FlagsThese constants define flags for the Flags parameter of CreateProcess.

Constants

Process Priorities

These constants define thread priorities for use in PROCESSSTRUCT.PriorityLevel.

Members

PROCESS_PRIORITY_IDLEprocess threads are only run when no other threads are queued to run
PROCESS_PRIORITY_LOWESTlowest non-idle priority
PROCESS_PRIORITY_BELOW_NORMALbelow-normal, but not lowest, priority
PROCESS_PRIORITY_NORMALnormal (and default) priority
PROCESS_PRIORITY_ABOVE_NORMALabove-normal, but not highest, priority
PROCESS_PRIORITY_HIGHESThighest non-time-critical priority
PROCESS_PRIORITY_TIME_CRITICALprocess threads are likely to be always first in the queue to run whenever they’re queued
PROCESS_PRIORITY_ERROR_RETURNnot a process priority; indicates error in functions returning a process priority

Process Creation Flags

These constants define flags for the Flags parameter of CreateProcess.

Members

CREATE_PROCESS_FLAG_SYSTEMcreate a system process (in privilege level 0)
This structure defines the state of a process.
This procedure creates a new process.
This file defines process management functions of PwnOS.
This file defines structures and cosntants for thread management functions of PwnOS.
This file defines thread management functions of PwnOS.
The Sync section of Core provides functions for mutual exclusion.
These constants define thread priorities for use in PROCESSSTRUCT.PriorityLevel.