Click or drag to resize

WindowsApi.CreateProcessWithTokenW Method

Win32 CreateProcessWithTokenW function.

Namespace: GSF.Interop
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.230-beta+03417d7b5cff037b24e882d7adef82d359b34964
Syntax
[DllImportAttribute("advapi32", CharSet = CharSet.Unicode, SetLastError = true)]
public static bool CreateProcessWithTokenW(
	IntPtr hToken,
	WindowsApi.LogonFlags dwLogonFlags,
	string lpApplicationName,
	string lpCommandLine,
	WindowsApi.CreationFlags dwCreationFlags,
	IntPtr lpEnvironment,
	string lpCurrentDirectory,
	in WindowsApi.STARTUPINFO lpStartupInfo,
	out WindowsApi.PROCESS_INFORMATION lpProcessInformation
)
View Source

Parameters

hToken  IntPtr
 
dwLogonFlags  WindowsApi.LogonFlags
 
lpApplicationName  String
 
lpCommandLine  String
 
dwCreationFlags  WindowsApi.CreationFlags
 
lpEnvironment  IntPtr
 
lpCurrentDirectory  String
 
lpStartupInfo  WindowsApi.STARTUPINFO
 
lpProcessInformation  WindowsApi.PROCESS_INFORMATION
 

Return Value

Boolean
See Also