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