Click or drag to resize

WindowsApiCreateProcessWithTokenW Method

Win32 CreateProcessWithTokenW function.

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