CAutoRevertImpersonation::CAutoRevertImpersonation
Constructs a CAutoRevertImpersonation object.
CAutoRevertImpersonation(
const CAccessToken* pAT
) throw( );
Parameters
- pAT
The address of the CAccessToken object to be reverted automatically.
Remarks
The actual impersonation of the access token should be performed separately from and preferably before the creation of a CAutoRevertImpersonation object. This impersonation will be reverted automatically when the CAutoRevertImpersonation object goes out of scope.
Requirements
Header: atlsecurity.h
See Also
Reference
CAutoRevertImpersonation Class