|
WindowsApiOpenProcessToken Method
|
Win32 OpenProcessToken function.
Namespace: GSF.InteropAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.248-beta+a497a19de709fd99e2448886199a2c8824265ddf
Syntax[DllImportAttribute("advapi32.dll", SetLastError = true)]
public static bool OpenProcessToken(
IntPtr ProcessHandle,
uint DesiredAccess,
ref IntPtr TokenHandle
)
<DllImportAttribute("advapi32.dll", SetLastError := true>]
Public Shared Function OpenProcessToken (
ProcessHandle As IntPtr,
DesiredAccess As UInteger,
ByRef TokenHandle As IntPtr
) As Boolean
public:
[DllImportAttribute(L"advapi32.dll", SetLastError = true)]
static bool OpenProcessToken(
IntPtr ProcessHandle,
unsigned int DesiredAccess,
IntPtr% TokenHandle
)
[<DllImportAttribute("advapi32.dll", SetLastError = true)>]
static member OpenProcessToken :
ProcessHandle : IntPtr *
DesiredAccess : uint32 *
TokenHandle : IntPtr byref -> bool
GSF.Interop.WindowsApi.OpenProcessToken = function(ProcessHandle, DesiredAccess, TokenHandle);
View SourceParameters
- ProcessHandle IntPtr
-
- DesiredAccess UInt32
-
- TokenHandle IntPtr
-
Return Value
Boolean
See Also