Commit e5275c2f authored by Michael Müller's avatar Michael Müller Committed by Alexandre Julliard

combase: Implement RoActivateInstance.

parent e6c0dd3b
@ stub RoActivateInstance @ stdcall RoActivateInstance(ptr ptr) combase.RoActivateInstance
@ stdcall RoGetActivationFactory(ptr ptr ptr) combase.RoGetActivationFactory @ stdcall RoGetActivationFactory(ptr ptr ptr) combase.RoGetActivationFactory
@ stub RoGetApartmentIdentifier @ stub RoGetApartmentIdentifier
@ stdcall RoInitialize(long) combase.RoInitialize @ stdcall RoInitialize(long) combase.RoInitialize
......
...@@ -242,7 +242,7 @@ ...@@ -242,7 +242,7 @@
@ stdcall PropVariantClear(ptr) ole32.PropVariantClear @ stdcall PropVariantClear(ptr) ole32.PropVariantClear
@ stdcall PropVariantCopy(ptr ptr) ole32.PropVariantCopy @ stdcall PropVariantCopy(ptr ptr) ole32.PropVariantCopy
@ stub ReleaseFuncDescs @ stub ReleaseFuncDescs
@ stub RoActivateInstance @ stdcall RoActivateInstance(ptr ptr)
@ stub RoCaptureErrorContext @ stub RoCaptureErrorContext
@ stub RoClearError @ stub RoClearError
@ stub RoFailFastWithErrorContext @ stub RoFailFastWithErrorContext
......
...@@ -198,3 +198,23 @@ HRESULT WINAPI RoGetParameterizedTypeInstanceIID(UINT32 name_element_count, cons ...@@ -198,3 +198,23 @@ HRESULT WINAPI RoGetParameterizedTypeInstanceIID(UINT32 name_element_count, cons
if (hiid) *hiid = INVALID_HANDLE_VALUE; if (hiid) *hiid = INVALID_HANDLE_VALUE;
return E_NOTIMPL; return E_NOTIMPL;
} }
/***********************************************************************
* RoActivateInstance (combase.@)
*/
HRESULT WINAPI RoActivateInstance(HSTRING classid, IInspectable **instance)
{
IActivationFactory *factory;
HRESULT hr;
FIXME("(%p, %p): semi-stub\n", classid, instance);
hr = RoGetActivationFactory(classid, &IID_IActivationFactory, (void **)&factory);
if (SUCCEEDED(hr))
{
hr = IActivationFactory_ActivateInstance(factory, instance);
IActivationFactory_Release(factory);
}
return hr;
}
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