CreateProcessAsUserW method
int
CreateProcessAsUserW(
- Pointer<
Void> hToken, - Pointer<
Uint16> lpApplicationName, - Pointer<
Uint16> lpCommandLine, - Pointer<
LPSECURITY_ATTRIBUTES> lpProcessAttributes, - Pointer<
LPSECURITY_ATTRIBUTES> lpThreadAttributes, - int bInheritHandles,
- int dwCreationFlags,
- Pointer<
Void> lpEnvironment, - Pointer<
Uint16> lpCurrentDirectory, - Pointer<
LPSTARTUPINFOW> lpStartupInfo, - Pointer<
LPPROCESS_INFORMATION> lpProcessInformation,
Implementation
int CreateProcessAsUserW(
ffi.Pointer<ffi.Void> hToken,
ffi.Pointer<ffi.Uint16> lpApplicationName,
ffi.Pointer<ffi.Uint16> lpCommandLine,
ffi.Pointer<LPSECURITY_ATTRIBUTES> lpProcessAttributes,
ffi.Pointer<LPSECURITY_ATTRIBUTES> lpThreadAttributes,
int bInheritHandles,
int dwCreationFlags,
ffi.Pointer<ffi.Void> lpEnvironment,
ffi.Pointer<ffi.Uint16> lpCurrentDirectory,
ffi.Pointer<LPSTARTUPINFOW> lpStartupInfo,
ffi.Pointer<LPPROCESS_INFORMATION> lpProcessInformation,
) {
return (_CreateProcessAsUserW ??= _dylib.lookupFunction<
_c_CreateProcessAsUserW,
_dart_CreateProcessAsUserW>('CreateProcessAsUserW'))(
hToken,
lpApplicationName,
lpCommandLine,
lpProcessAttributes,
lpThreadAttributes,
bInheritHandles,
dwCreationFlags,
lpEnvironment,
lpCurrentDirectory,
lpStartupInfo,
lpProcessInformation,
);
}