Module::GetClassObject 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 Module::GetClassObject Method.
Retreives a cache of class factories.
HRESULT GetClassObject( REFCLSID clsid, REFIID riid, _Deref_out_ void **ppv, wchar_t* serverName = nullptr );
Parameters
clsid
Class ID.
riid
Interface ID that you request.
ppv
Pointer to returned object.
serverName
The server name that is specified in either the ActivatableClassWithFactory, ActivatableClassWithFactoryEx, or ActivatableClass macro; or nullptr to get the default server name.
Use this method only for COM, not the Windows Runtime. This method exposes only IClassFactory methods.
Header: module.h
Namespace: Microsoft::WRL
Module Class
Show: