|
WindowsApiDuplicateToken Method
|
Win32 DuplicateToken function.
Namespace: GSF.InteropAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.218-beta+101eee949414e414795e55a6e73d88938f0177b8
Syntax [DllImportAttribute("advapi32.dll", SetLastError = true)]
public static bool DuplicateToken(
IntPtr existingTokenHandle,
int securityImpersonationLevel,
ref IntPtr duplicateTokenHandle
)
public:
[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
BooleanSee Also