CreateProcess function kernel32
int
CreateProcess(
- Pointer<
Utf16> lpApplicationName, - Pointer<
Utf16> lpCommandLine, - Pointer<
SECURITY_ATTRIBUTES> lpProcessAttributes, - Pointer<
SECURITY_ATTRIBUTES> lpThreadAttributes, - int bInheritHandles,
- int dwCreationFlags,
- Pointer<
NativeType> lpEnvironment, - Pointer<
Utf16> lpCurrentDirectory, - Pointer<
STARTUPINFO> lpStartupInfo, - Pointer<
PROCESS_INFORMATION> lpProcessInformation,
Creates a new process and its primary thread. The new process runs in the security context of the calling process.
BOOL CreateProcessW(
LPCWSTR lpApplicationName,
LPWSTR lpCommandLine,
LPSECURITY_ATTRIBUTES lpProcessAttributes,
LPSECURITY_ATTRIBUTES lpThreadAttributes,
BOOL bInheritHandles,
DWORD dwCreationFlags,
LPVOID lpEnvironment,
LPCWSTR lpCurrentDirectory,
LPSTARTUPINFOW lpStartupInfo,
LPPROCESS_INFORMATION lpProcessInformation
);
Implementation
int CreateProcess(
Pointer<Utf16> lpApplicationName,
Pointer<Utf16> lpCommandLine,
Pointer<SECURITY_ATTRIBUTES> lpProcessAttributes,
Pointer<SECURITY_ATTRIBUTES> lpThreadAttributes,
int bInheritHandles,
int dwCreationFlags,
Pointer lpEnvironment,
Pointer<Utf16> lpCurrentDirectory,
Pointer<STARTUPINFO> lpStartupInfo,
Pointer<PROCESS_INFORMATION> lpProcessInformation) =>
_CreateProcess(
lpApplicationName,
lpCommandLine,
lpProcessAttributes,
lpThreadAttributes,
bInheritHandles,
dwCreationFlags,
lpEnvironment,
lpCurrentDirectory,
lpStartupInfo,
lpProcessInformation);