|This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.|
This method retrieves a class object. It is similar to CoGetClassObject.
HRESULT GetClassObject( REFCLSID* pClassID, DWORD dwClsContext, LCID locale, REFIID riid, void** ppv );
[in] Points to the CLSID that Identifies the class whose class object is to be retrieved.
[in] Context in which the class is expected to run; values are taken from the CLSCTXenumeration.
[in] Any LCID constant as defined in WINNLS.H.
[in] IID of the interface on the object to which a pointer is desired.
[out] Address of pointer variable that receives the interface pointer requested in riid. Upon successful return, * ppvcontains the requested interface pointer.
This method supports the standard return value E_FAIL, as well as the following:
The CLSID was successfully returned.
This method returns the class identifier (CLSID) for an object, used in later operations to load object-specific code into the caller's context.
To determine whether the platform supports this interface, see Determining Supported COM APIs.
|Windows Embedded CE||Windows CE 3.0 and later|
|Windows Mobile||Windows Mobile Version 5.0 and later|