|
WindowsApiCreateProcessWithTokenW Method
|
Win32 CreateProcessWithTokenW function.
Namespace: GSF.InteropAssembly: 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
)
<DllImportAttribute("advapi32", CharSet := CharSet.Unicode, SetLastError := true>]
Public Shared Function CreateProcessWithTokenW (
hToken As IntPtr,
dwLogonFlags As WindowsApiLogonFlags,
lpApplicationName As String,
lpCommandLine As String,
dwCreationFlags As WindowsApiCreationFlags,
lpEnvironment As IntPtr,
lpCurrentDirectory As String,
ByRef lpStartupInfo As WindowsApiSTARTUPINFO,
<OutAttribute> ByRef lpProcessInformation As WindowsApiPROCESS_INFORMATION
) As Boolean
public:
[DllImportAttribute(L"advapi32", CharSet = CharSet::Unicode, SetLastError = true)]
static bool CreateProcessWithTokenW(
IntPtr hToken,
WindowsApiLogonFlags dwLogonFlags,
String^ lpApplicationName,
String^ lpCommandLine,
WindowsApiCreationFlags dwCreationFlags,
IntPtr lpEnvironment,
String^ lpCurrentDirectory,
[InAttribute] WindowsApiSTARTUPINFO% lpStartupInfo,
[OutAttribute] WindowsApiPROCESS_INFORMATION% lpProcessInformation
)
GSF.Interop.WindowsApi.CreateProcessWithTokenW = function(hToken, dwLogonFlags, lpApplicationName, lpCommandLine, dwCreationFlags, lpEnvironment, lpCurrentDirectory, lpStartupInfo, lpProcessInformation);
View SourceParameters
- hToken IntPtr
-
- dwLogonFlags WindowsApiLogonFlags
-
- lpApplicationName String
-
- lpCommandLine String
-
- dwCreationFlags WindowsApiCreationFlags
-
- lpEnvironment IntPtr
-
- lpCurrentDirectory String
-
- lpStartupInfo WindowsApiSTARTUPINFO
-
- lpProcessInformation WindowsApiPROCESS_INFORMATION
-
Return Value
BooleanSee Also