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