Compartilhar via


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.

Return Value

S_OK if successful; otherwise, the HRESULT returned by GetActivationFactory.

Requirements

Header: module.h

Namespace: Microsoft::WRL

See Also

Reference

Module Class

ActivatableClass Macros