combase: Add stub for RoRegisterForApartmentShutdown.

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Müller 2018-05-04 06:13:14 +00:00 committed by Alexandre Julliard
parent a422f0ef55
commit ddbe3a7025
3 changed files with 21 additions and 2 deletions

View File

@ -3,7 +3,7 @@
@ stdcall RoGetApartmentIdentifier(ptr) combase.RoGetApartmentIdentifier
@ stdcall RoInitialize(long) combase.RoInitialize
@ stub RoRegisterActivationFactories
@ stub RoRegisterForApartmentShutdown
@ stdcall RoRegisterForApartmentShutdown(ptr ptr ptr) combase.RoRegisterForApartmentShutdown
@ stub RoRevokeActivationFactories
@ stdcall RoUninitialize() combase.RoUninitialize
@ stub RoUnregisterForApartmentShutdown

View File

@ -263,7 +263,7 @@
@ stub RoOriginateLanguageException
@ stub RoParameterizedTypeExtraGetTypeSignature
@ stub RoRegisterActivationFactories
@ stub RoRegisterForApartmentShutdown
@ stdcall RoRegisterForApartmentShutdown(ptr ptr ptr)
@ stub RoReportCapabilityCheckFailure
@ stub RoReportFailedDelegate
@ stub RoReportUnhandledError

View File

@ -232,3 +232,22 @@ HRESULT WINAPI RoGetApartmentIdentifier(UINT64 *identifier)
*identifier = 0xdeadbeef;
return S_OK;
}
/***********************************************************************
* RoRegisterForApartmentShutdown (combase.@)
*/
HRESULT WINAPI RoRegisterForApartmentShutdown(IApartmentShutdown *callback,
UINT64 *identifier, APARTMENT_SHUTDOWN_REGISTRATION_COOKIE *cookie)
{
HRESULT hr;
FIXME("(%p, %p, %p): stub\n", callback, identifier, cookie);
hr = RoGetApartmentIdentifier(identifier);
if (FAILED(hr))
return hr;
if (cookie)
*cookie = (void *)0xcafecafe;
return S_OK;
}