SimpleActivationFactory::ActivateInstance Method
Creates an instance of the specified interface.
STDMETHOD(
ActivateInstance
)(_Deref_out_ IInspectable **ppvObject);
Parameters
- ppvObject
When this operation completes, pointer to an instance of the object specified by the Base class template parameter.
Return Value
S_OK if successful; otherwise, an HRESULT that indicates the error.
Remarks
If __WRL_STRICT__ is defined, an assert error is emitted if the base class specified in the class template parameter isn't derived from RuntimeClass, or isn't configured with the WinRt or WinRtClassicComMix RuntimeClassType enumeration value.
Requirements
Header: module.h
Namespace: Microsoft::WRL