Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Call this method to create a new impersonation access token.
bool CreateImpersonationToken(
CAccessToken* pImp,
SECURITY_IMPERSONATION_LEVEL sil = SecurityImpersonation
) const throw(...);
Parameters
pImp
Pointer to the new CAccessToken object.sil
Specifies a SECURITY_IMPERSONATION_LEVEL enumerated type that supplies the impersonation level of the new token.
Return Value
Returns true on success, false on failure.
Remarks
CreateImpersonationToken calls DuplicateToken to create a new impersonation token.
Requirements
Header: atlsecurity.h
See Also
Reference
CAccessToken::CreatePrimaryToken
CAccessToken::CreateRestrictedToken