Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Module::GetClassObject Method

Retreives a cache of class factories.

 HRESULT GetClassObject(
   REFCLSID clsid,
   REFIID riid,
   _Deref_out_ void **ppv,
   wchar_t* serverName = nullptr
);

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

Show:
© 2015 Microsoft