Share via


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.

Remarks

Use this method only for COM, not the Windows Runtime. This method exposes only IClassFactory methods.

Requirements

Header: module.h

Namespace: Microsoft::WRL

See Also

Reference

Module Class