| 
            
              WindowsApiOpenProcessToken Method
             | 
          
        
        
            Win32 OpenProcessToken function.
            
        
        Namespace: GSF.InteropAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.258-beta+f8b6aa3dbfe0b4cc2b0b0760dd5d2a3dd4f59d09
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 Booleanpublic:
[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