public static extern bool DuplicateTokenEx( SafeTokenHandle hExistingToken, UInt32 desiredAccess, IntPtr pTokenAttributes, SECURITY_IMPERSONATION_LEVEL ImpersonationLevel, TOKEN_TYPE TokenType, out SafeTokenHandle hNewToken);