Restores the authentication information on a thread of execution to its previous identity.
HRESULT CoRevertToSelf()
Return Values
This function supports the standard return value E_INVALIDARG, as well as the following:
Remarks
CoRevertToSelf restores the authentication information on a thread of execution to its previous identity after a previous server call to CoImpersonateClient. This is a helper function that encapsulates the following common sequence of calls (error handling excluded):
CoGetCallContext(IID_IServerSecurity, (void**)&pss); pss->RevertToSelf(); pss->Release();
See Also
IServerSecurity::RevertToSelf, CoGetCallContext, Security in COM