Interop.mincore.DuplicateTokenEx C# (CSharp) Method

DuplicateTokenEx() private method

private DuplicateTokenEx ( SafeAccessTokenHandle hExistingToken, uint dwDesiredAccess, IntPtr lpTokenAttributes, uint ImpersonationLevel, uint TokenType, SafeAccessTokenHandle &phNewToken ) : bool
hExistingToken SafeAccessTokenHandle
dwDesiredAccess uint
lpTokenAttributes IntPtr
ImpersonationLevel uint
TokenType uint
phNewToken SafeAccessTokenHandle
return bool
        internal static extern bool DuplicateTokenEx(
            SafeAccessTokenHandle hExistingToken,
            uint dwDesiredAccess,
            IntPtr lpTokenAttributes,   // LPSECURITY_ATTRIBUTES
            uint ImpersonationLevel,
            uint TokenType,
            ref SafeAccessTokenHandle phNewToken);
    }