Export (0) Print
Expand All

SimpleActivationFactory::ActivateInstance Method

Creates an instance of the specified interface.

STDMETHOD(
   ActivateInstance
)(_Deref_out_ IInspectable **ppvObject);

ppvObject

When this operation completes, pointer to an instance of the object specified by the Base class template parameter.

S_OK if successful; otherwise, an HRESULT that indicates the error.

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.

Header: module.h

Namespace: Microsoft::WRL

Show:
© 2014 Microsoft