Processes.asm

This file defines process management functions of PwnOS.

See Also

Authors

  • Neil G.  Dickson
Summary
Processes.asmThis file defines process management functions of PwnOS.
Variables
pProcessListThis is the main process list, Contains the handle of the first process in the list.
ProcessAccessLockThis is the LOCKSTRUCT for locking access to process management data.
Functions
GetCurrentProcessThis procedure returns the current process handle.
CreateProcessThis procedure creates a new process.
DestroyProcessThis procedure destroys a process.
ExitProcessThis procedure exits the current process, giving the specified return code.
Gateway Functions of Processes.asm
Functions
GetCurrentProcessUGateway function for GetCurrentProcess
CreateProcessUGateway function for CreateProcess
DestroyProcessUGateway function for DestroyProcess
ExitProcessUGateway function for ExitProcess

Variables

pProcessList

pProcessList DWORD ?

This is the main process list, Contains the handle of the first process in the list.

ProcessAccessLock

ProcessAccessLock LOCKSTRUCT <0,NULL,NULL,NULL>

This is the LOCKSTRUCT for locking access to process management data.

Functions

GetCurrentProcess

This procedure returns the current process handle.

Returns

CreateProcess

This procedure creates a new process.

Not Implemented

Parameters

pNameaddress of string holding path of the process to create
DataSizesize of data block to be passed to the process, or 0 if none
pDataaddress of data block to be passed to the process, or NULL if none
Flagsprocess creation flags; (see <Process Creation Flags>)

Returns

DestroyProcess

This procedure destroys a process.

Not Implemented

Parameters

hProcesshandle of process to destroy

ExitProcess

This procedure exits the current process, giving the specified return code.

Not Implemented

Parameters

returnCodereturn code of the current process

Gateway Functions of Processes.asm

Summary
Functions
GetCurrentProcessUGateway function for GetCurrentProcess
CreateProcessUGateway function for CreateProcess
DestroyProcessUGateway function for DestroyProcess
ExitProcessUGateway function for ExitProcess

Functions

GetCurrentProcessU

Gateway function for GetCurrentProcess

CreateProcessU

Gateway function for CreateProcess

This clears the CREATE_PROCESS_FLAG_SYSTEM flag if it is set, and ensures that none of the data block is in system space.

DestroyProcessU

Gateway function for DestroyProcess

This ensures that none of the PROCESSSTRUCT is in system space.

ExitProcessU

Gateway function for ExitProcess

pProcessList DWORD ?
This is the main process list, Contains the handle of the first process in the list.
ProcessAccessLock LOCKSTRUCT <0,NULL,NULL,NULL>
This is the LOCKSTRUCT for locking access to process management data.
This structure is the centre of synchronization data in PwnOS, defining the state of an access lock.
This procedure returns the current process handle.
This procedure creates a new process.
This procedure destroys a process.
This procedure exits the current process, giving the specified return code.
This file defines structures and cosntants for 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.
This structure defines the state of a process.