Click or drag to resize

WindowsApiCreateProcessWithTokenW Method

Win32 CreateProcessWithTokenW function.

Namespace: GSF.Interop
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.207-beta+1781b796b2aa7a54013a031eb432fe4ccee31867
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