Compartir a través de


CAccessToken::Revert

Call this method to stop a thread from using an impersonation token.

bool Revert(
   HANDLE hThread = NULL 
) const throw( );

Parameters

  • hThread
    Handle to the thread to revert from impersonation. If hThread is NULL, the current thread is assumed.

Return Value

Returns true on success, false on failure.

Remarks

The reversion of impersonation tokens can be performed automatically with the CAutoRevertImpersonation Class.

Requirements

Header: atlsecurity.h

See Also

Concepts

CAccessToken Class

CAccessToken Members

CAccessToken::CreateImpersonationToken