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