CAutoRevertImpersonation::Attach
Automates the impersonation reversion of an access token.
void Attach(
const CAccessToken* pAT
) throw( );
Parameters
- pAT
The address of the CAccessToken object to be reverted automatically
Remarks
This method should only be used if the CAutoRevertImpersonation object was created with a NULL CAccessToken pointer, or if Detach was called previously. For simple cases, it is not necessary to use this method.
Requirements
Header: atlsecurity.h
See Also
Reference
CAutoRevertImpersonation Class