SimpleActivationFactory::ActivateInstance Method
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at 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.
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: