| 
            
              WindowsApiDuplicateToken Method
             | 
          
        
        
            Win32 DuplicateToken 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 DuplicateToken(
	IntPtr existingTokenHandle,
	int securityImpersonationLevel,
	ref IntPtr duplicateTokenHandle
)<DllImportAttribute("advapi32.dll", SetLastError := true>]
Public Shared Function DuplicateToken ( 
	existingTokenHandle As IntPtr,
	securityImpersonationLevel As Integer,
	ByRef duplicateTokenHandle As IntPtr
) As Booleanpublic:
[DllImportAttribute(L"advapi32.dll", SetLastError = true)]
static bool DuplicateToken(
	IntPtr existingTokenHandle, 
	int securityImpersonationLevel, 
	IntPtr% duplicateTokenHandle
)
[<DllImportAttribute("advapi32.dll", SetLastError = true)>]
static member DuplicateToken : 
        existingTokenHandle : IntPtr * 
        securityImpersonationLevel : int * 
        duplicateTokenHandle : IntPtr byref -> bool GSF.Interop.WindowsApi.DuplicateToken = function(existingTokenHandle, securityImpersonationLevel, duplicateTokenHandle);
 View SourceParameters
- existingTokenHandle  IntPtr
 -  
 - securityImpersonationLevel  Int32
 -  
 - duplicateTokenHandle  IntPtr
 -  
 
Return Value
Boolean
See Also