ActivationFactoryCallback Function


The new home for Visual Studio documentation is Visual Studio 2017 Documentation on

The latest version of this topic can be found at ActivationFactoryCallback Function.

Supports the WRL infrastructure and is not intended to be used directly from your code.

inline HRESULT STDAPICALLTYPE ActivationFactoryCallback(  
   HSTRING activationId,  
   IActivationFactory **ppFactory  


Handle to a string that specifies a runtime class name.

When this operation completes, an activation factory that corresponds to parameter activationId.

S_OK if successful; otherwise, an HRESULT that describes the failure. Likely failure HRESULTs are CLASS_E_CLASSNOTAVAILABLE and E_INVALIDARG.

Gets the activation factory for the specified activation ID.

The Windows Runtime calls this callback function to request an object specified by its runtime class name.

Header: module.h

Namespace: Microsoft::WRL::Details

Microsoft::WRL::Details Namespace