This file defines process management functions of PwnOS.
| Processes.asm | This file defines process management functions of PwnOS. |
| Variables | |
| pProcessList | This is the main process list, Contains the handle of the first process in the list. |
| ProcessAccessLock | This is the LOCKSTRUCT for locking access to process management data. |
| Functions | |
| GetCurrentProcess | This procedure returns the current process handle. |
| CreateProcess | This procedure creates a new process. |
| DestroyProcess | This procedure destroys a process. |
| ExitProcess | This procedure exits the current process, giving the specified return code. |
| Gateway Functions of Processes.asm | |
| Functions | |
| GetCurrentProcessU | Gateway function for GetCurrentProcess |
| CreateProcessU | Gateway function for CreateProcess |
| DestroyProcessU | Gateway function for DestroyProcess |
| 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 procedure returns the current process handle.
This procedure creates a new process.
Not Implemented
| pName | address of string holding path of the process to create |
| DataSize | size of data block to be passed to the process, or 0 if none |
| pData | address of data block to be passed to the process, or NULL if none |
| Flags | process creation flags; (see <Process Creation Flags>) |
This procedure destroys a process.
Not Implemented
| hProcess | handle of process to destroy |
This procedure exits the current process, giving the specified return code.
Not Implemented
| returnCode | return code of the current process |
| Functions | |
| GetCurrentProcessU | Gateway function for GetCurrentProcess |
| CreateProcessU | Gateway function for CreateProcess |
| DestroyProcessU | Gateway function for DestroyProcess |
| ExitProcessU | Gateway function for ExitProcess |
Gateway function for GetCurrentProcess
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.
Gateway function for DestroyProcess
This ensures that none of the PROCESSSTRUCT is in system space.
Gateway function for ExitProcess
This is the main process list, Contains the handle of the first process in the list.
pProcessList DWORD ?
This is the LOCKSTRUCT for locking access to process management data.
ProcessAccessLock LOCKSTRUCT <0,NULL,NULL,NULL>