CAccessToken::Revert
Call this method to stop a thread from using an impersonation token.
bool Revert(
HANDLE hThread = NULL
) const throw( );
- hThread
Handle to the thread to revert from impersonation. If hThread is NULL, the current thread is assumed.
Returns true on success, false on failure.
The reversion of impersonation tokens can be performed automatically with the CAutoRevertImpersonation Class.
Header: atlsecurity.h