Commit 8d6d5a56 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

combase: Move CoRevertToSelf().

parent 9c181981
...@@ -567,3 +567,23 @@ HRESULT WINAPI CoImpersonateClient(void) ...@@ -567,3 +567,23 @@ HRESULT WINAPI CoImpersonateClient(void)
return hr; return hr;
} }
/***********************************************************************
* CoRevertToSelf (combase.@)
*/
HRESULT WINAPI CoRevertToSelf(void)
{
IServerSecurity *server_security;
HRESULT hr;
TRACE("\n");
hr = CoGetCallContext(&IID_IServerSecurity, (void **)&server_security);
if (SUCCEEDED(hr))
{
hr = IServerSecurity_RevertToSelf(server_security);
IServerSecurity_Release(server_security);
}
return hr;
}
...@@ -149,7 +149,7 @@ ...@@ -149,7 +149,7 @@
@ stdcall CoReleaseServerProcess() ole32.CoReleaseServerProcess @ stdcall CoReleaseServerProcess() ole32.CoReleaseServerProcess
@ stdcall CoResumeClassObjects() ole32.CoResumeClassObjects @ stdcall CoResumeClassObjects() ole32.CoResumeClassObjects
@ stub CoRetireServer @ stub CoRetireServer
@ stdcall CoRevertToSelf() ole32.CoRevertToSelf @ stdcall CoRevertToSelf()
@ stdcall CoRevokeClassObject(long) ole32.CoRevokeClassObject @ stdcall CoRevokeClassObject(long) ole32.CoRevokeClassObject
@ stdcall CoRevokeInitializeSpy(int64) ole32.CoRevokeInitializeSpy @ stdcall CoRevokeInitializeSpy(int64) ole32.CoRevokeInitializeSpy
@ stdcall CoRevokeMallocSpy() @ stdcall CoRevokeMallocSpy()
......
...@@ -4250,39 +4250,6 @@ HRESULT WINAPI CoSwitchCallContext(IUnknown *pObject, IUnknown **ppOldObject) ...@@ -4250,39 +4250,6 @@ HRESULT WINAPI CoSwitchCallContext(IUnknown *pObject, IUnknown **ppOldObject)
return S_OK; return S_OK;
} }
/***********************************************************************
* CoRevertToSelf [OLE32.@]
*
* Ends the impersonation of the client of the currently executing server
* call in the current thread.
*
* PARAMS
* None.
*
* RETURNS
* Success: S_OK.
* Failure: HRESULT code.
*
* SEE ALSO
* CoImpersonateClient, CoQueryClientBlanket, CoGetCallContext.
*/
HRESULT WINAPI CoRevertToSelf(void)
{
IServerSecurity *pSrvSec;
HRESULT hr;
TRACE("\n");
hr = CoGetCallContext(&IID_IServerSecurity, (void **)&pSrvSec);
if (SUCCEEDED(hr))
{
hr = IServerSecurity_RevertToSelf(pSrvSec);
IServerSecurity_Release(pSrvSec);
}
return hr;
}
static BOOL COM_PeekMessage(struct apartment *apt, MSG *msg) static BOOL COM_PeekMessage(struct apartment *apt, MSG *msg)
{ {
/* first try to retrieve messages for incoming COM calls to the apartment window */ /* first try to retrieve messages for incoming COM calls to the apartment window */
......
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
@ stdcall CoReleaseMarshalData(ptr) @ stdcall CoReleaseMarshalData(ptr)
@ stdcall CoReleaseServerProcess() @ stdcall CoReleaseServerProcess()
@ stdcall CoResumeClassObjects() @ stdcall CoResumeClassObjects()
@ stdcall CoRevertToSelf() @ stdcall CoRevertToSelf() combase.CoRevertToSelf
@ stdcall CoRevokeClassObject(long) @ stdcall CoRevokeClassObject(long)
@ stdcall CoRevokeInitializeSpy(int64) @ stdcall CoRevokeInitializeSpy(int64)
@ stdcall CoRevokeMallocSpy() combase.CoRevokeMallocSpy @ stdcall CoRevokeMallocSpy() combase.CoRevokeMallocSpy
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment