GetActivationFactory function (roapi.h)

Gets the activation factory for the specified runtime class.

Syntax

HRESULT GetActivationFactory(
  [in]  HSTRING activatableClassId,
  [out] T       **factory
);

Parameters

[in] activatableClassId

The ID of the activatable class.

[out] factory

The activation factory.

Return value

Returns S_OK on success.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header roapi.h (include Stdafx.h)
DLL Combase.dll