Module::GetActivationFactory Method
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at Module::GetActivationFactory Method.
Gets an activation factory for the module.
WRL_NOTHROW HRESULT GetActivationFactory( _In_ HSTRING pActivatibleClassId, _Deref_out_ IActivationFactory **ppIFactory, wchar_t* serverName = nullptr );
Parameters
pActivatibleClassId
IID of a runtime class.
ppIFactory
The IActivationFactory for the specified runtime class.
serverName
The name of a subset of class factories in the current module. Specify the server name used in the ActivatableClassWithFactoryEx macro, or specify nullptr to get the default server name.
S_OK if successful; otherwise, the HRESULT returned by GetActivationFactory.
Header: module.h
Namespace: Microsoft::WRL
Module ClassActivatableClass Macros
Show: