#ifndef _NTRTL_H
// private
NTSYSAPI
NTSTATUS
NTAPI
RtlCreateUserProcess(
_In_ PUNICODE_STRING NtImagePathName,
_In_ ULONG ExtendedParameters, // HIWORD(NumaNodeNumber), LOWORD(Reserved)
_In_ PRTL_USER_PROCESS_PARAMETERS ProcessParameters,
_In_opt_ PSECURITY_DESCRIPTOR ProcessSecurityDescriptor,
_In_opt_ PSECURITY_DESCRIPTOR ThreadSecurityDescriptor,
_In_opt_ HANDLE ParentProcess,
_In_ BOOLEAN InheritHandles,
_In_opt_ HANDLE DebugPort,
_In_opt_ HANDLE TokenHandle, // used to be ExceptionPort
_Out_ PRTL_USER_PROCESS_INFORMATION ProcessInformation
);
View code on GitHub
Full path to executable image, in NT format (ex: "\??\C:\WinNT\SYSTEM32\cmd.exe").
Used in File object creation. Valid are OBJ_INHERIT
and OBJ_CASE_INSENSITIVE
.
Normalized RTL_USER_PROCESS_PARAMETERS
structure pointer. See RtlCreateProcessParameters
for more information.
Handle to object Process, opened with PROCESS_CREATE_PROCESS
access.
Pointer to user-allocated structure RTL_USER_PROCESS_INFORMATION
.