BelhardTraining.LessonMultithreading.NativeMethods.DuplicateTokenEx C# (CSharp) Метод

DuplicateTokenEx() приватный Метод

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
Результат bool
        public static extern bool DuplicateTokenEx(
            SafeTokenHandle hExistingToken,
            UInt32 desiredAccess,
            IntPtr pTokenAttributes,
            SECURITY_IMPERSONATION_LEVEL ImpersonationLevel,
            TOKEN_TYPE TokenType,
            out SafeTokenHandle hNewToken);