Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

CoRevertToSelf

Windows Mobile 6.5
A version of this page is also available for
4/8/2010

This function restores the authentication information on a thread of execution.


HRESULT CoRevertToSelf( )

None.

This function supports the standard return values, including the following values:

S_OK

Indicates success.

RPC_E_CALL_COMPLETE

Indicates failure. The current thread should be terminated.

CoRevertToSelf, which is a helper function that calls IServerSecurity::RevertToSelf, restores the authentication information on a thread to the authentication information on the thread before impersonation began.

CoRevertToSelf encapsulates the following common sequence of calls (error handling excluded).

    CoGetCallContext(IID_IServerSecurity, (void**)&pss);
    pss->RevertToSelf();
    pss->Release();

To determine whether the platform supports this function, see Determining Supported COM APIs.

Headerobjbase.h
Libraryole32.lib
Windows Embedded CEWindows CE 3.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

Show:
© 2015 Microsoft