Click or drag to resize

WindowsApiCreateProcessWithTokenW Method

Win32 CreateProcessWithTokenW function.

Namespace: GSF.Interop
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.218-beta+101eee949414e414795e55a6e73d88938f0177b8
Syntax
[DllImportAttribute("advapi32", CharSet = CharSet.Unicode, SetLastError = true)]
public static bool CreateProcessWithTokenW(
	IntPtr hToken,
	WindowsApiLogonFlags dwLogonFlags,
	string lpApplicationName,
	string lpCommandLine,
	WindowsApiCreationFlags dwCreationFlags,
	IntPtr lpEnvironment,
	string lpCurrentDirectory,
	in WindowsApiSTARTUPINFO lpStartupInfo,
	out WindowsApiPROCESS_INFORMATION lpProcessInformation
)
View Source

Parameters

hToken  IntPtr
 
dwLogonFlags  WindowsApiLogonFlags
 
lpApplicationName  String
 
lpCommandLine  String
 
dwCreationFlags  WindowsApiCreationFlags
 
lpEnvironment  IntPtr
 
lpCurrentDirectory  String
 
lpStartupInfo  WindowsApiSTARTUPINFO
 
lpProcessInformation  WindowsApiPROCESS_INFORMATION
 

Return Value

Boolean
See Also