Retrieves a class object. Similar to CoGetClassObject.
HRESULT GetClassObject(
REFCLSID *pClassID, //CLSID of class object desired
DWORD dwClsContext, //Values from CLSCTX
LCID locale, //LCID constant
REFIID riid, //IID of requested interface
void ** ppv //Address of output variable that receives
// the interface pointer requested in riid
);
This method supports the standard return value E_FAIL, as well as the following:
This method returns the class identifier (CLSID) for an object, used in later operations to load object-specific code into the caller's context.
Windows NT: Use version 4.0 or later.
Windows: Use Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in objidl.h.