#ifndef _NTRTL_H
// private
/**
* The RtlCreateProcessParametersEx routine creates and initializes a process parameters block for a new process, with control over normalization.
*
* \param ProcessParameters Receives the newly allocated process parameters block.
* \param ImagePathName The image path name of the process.
* \param DllPath An optional DLL search path.
* \param CurrentDirectory An optional current directory.
* \param CommandLine An optional command line.
* \param Environment An optional environment block for the process.
* \param WindowTitle An optional window title.
* \param DesktopInfo An optional desktop information string.
* \param ShellInfo An optional shell information string.
* \param RuntimeData An optional runtime data string.
* \param Flags Pass RTL_USER_PROC_PARAMS_NORMALIZED to keep the parameters normalized.
* \return NTSTATUS Successful or errant status.
* \remarks Allocates process-parameter data; it does not create a process. Keep counted source strings and any input environment valid during capture. Destroy the resulting allocation with RtlDestroyProcessParameters. Normalization is controlled by the selected entry/flags and is not guaranteed solely by a successful status.
*/
NTSYSAPI
NTSTATUS
NTAPI
RtlCreateProcessParametersEx(
_Out_ PRTL_USER_PROCESS_PARAMETERS *ProcessParameters,
_In_ PCUNICODE_STRING ImagePathName,
_In_opt_ PCUNICODE_STRING DllPath,
_In_opt_ PCUNICODE_STRING CurrentDirectory,
_In_opt_ PCUNICODE_STRING CommandLine,
_In_opt_ PVOID Environment,
_In_opt_ PCUNICODE_STRING WindowTitle,
_In_opt_ PCUNICODE_STRING DesktopInfo,
_In_opt_ PCUNICODE_STRING ShellInfo,
_In_opt_ PCUNICODE_STRING RuntimeData,
_In_ ULONG Flags // pass RTL_USER_PROC_PARAMS_NORMALIZED to keep parameters normalized
);
View code on GitHubNo description available.