My Project
Loading...
Searching...
No Matches
process.c File Reference

Go to the source code of this file.

Macros

#define MIN_PID   4u
#define MAX_PID   0xFFFFFFFCUL
#define ALIGN_DELTA   6u
#define MAX_FREE_POOL   1024u
#define PML4_INDEX(addr)
#define KERNEL_PML4_START   ((size_t)PML4_INDEX(KernelVaStart))
#define USER_INITIAL_STACK_TOP   0x00007FFFFFFFFFFF

Functions

MTSTATUS PsCreateProcess (IN const char *ExecutablePath, OUT PHANDLE ProcessHandle, IN ACCESS_MASK DesiredAccess, _In_Opt HANDLE ParentProcess)
void PsTerminateProcess (IN PEPROCESS Process)

Variables

EPROCESS SystemProcess
uintptr_t MmSystemRangeStart = PhysicalMemoryOffset
uintptr_t MmHighestUserAddress = USER_VA_END
uintptr_t MmUserProbeAddress = 0x00007FFFFFFF0000

Macro Definition Documentation

◆ ALIGN_DELTA

#define ALIGN_DELTA   6u

Definition at line 18 of file process.c.

◆ KERNEL_PML4_START

#define KERNEL_PML4_START   ((size_t)PML4_INDEX(KernelVaStart))

Definition at line 22 of file process.c.

◆ MAX_FREE_POOL

#define MAX_FREE_POOL   1024u

Definition at line 19 of file process.c.

◆ MAX_PID

#define MAX_PID   0xFFFFFFFCUL

Definition at line 17 of file process.c.

◆ MIN_PID

#define MIN_PID   4u

Definition at line 16 of file process.c.

◆ PML4_INDEX

#define PML4_INDEX ( addr)
Value:
(((addr) >> 39) & 0x1FFULL)

Definition at line 21 of file process.c.

◆ USER_INITIAL_STACK_TOP

#define USER_INITIAL_STACK_TOP   0x00007FFFFFFFFFFF

Definition at line 23 of file process.c.

Function Documentation

◆ PsCreateProcess()

MTSTATUS PsCreateProcess ( IN const char * ExecutablePath,
OUT PHANDLE ProcessHandle,
IN ACCESS_MASK DesiredAccess,
_In_Opt HANDLE ParentProcess )

Definition at line 50 of file process.c.

◆ PsTerminateProcess()

void PsTerminateProcess ( IN PEPROCESS Process)

Definition at line 231 of file process.c.

Variable Documentation

◆ MmHighestUserAddress

uintptr_t MmHighestUserAddress = USER_VA_END

Definition at line 27 of file process.c.

◆ MmSystemRangeStart

uintptr_t MmSystemRangeStart = PhysicalMemoryOffset

Definition at line 26 of file process.c.

◆ MmUserProbeAddress

uintptr_t MmUserProbeAddress = 0x00007FFFFFFF0000

Definition at line 28 of file process.c.

◆ SystemProcess

EPROCESS SystemProcess
extern