Module::GetActivationFactory Method
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.
Syntax
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.
Return Value
S_OK if successful; otherwise, the HRESULT returned by GetActivationFactory.
Requirements
Header: module.h
Namespace: Microsoft::WRL
See Also
Module ClassActivatableClass Macros