BelhardTraining.LessonMultithreading.NativeMethods.DuplicateTokenEx C# (CSharp) Method

DuplicateTokenEx() private method

private DuplicateTokenEx ( SafeTokenHandle hExistingToken, UInt32 desiredAccess, IntPtr pTokenAttributes, SECURITY_IMPERSONATION_LEVEL ImpersonationLevel, TOKEN_TYPE TokenType, SafeTokenHandle &hNewToken ) : bool
hExistingToken SafeTokenHandle
desiredAccess System.UInt32
pTokenAttributes System.IntPtr
ImpersonationLevel SECURITY_IMPERSONATION_LEVEL
TokenType TOKEN_TYPE
hNewToken SafeTokenHandle
return bool
        public static extern bool DuplicateTokenEx(
            SafeTokenHandle hExistingToken,
            UInt32 desiredAccess,
            IntPtr pTokenAttributes,
            SECURITY_IMPERSONATION_LEVEL ImpersonationLevel,
            TOKEN_TYPE TokenType,
            out SafeTokenHandle hNewToken);