IClassAccess::GetClassInfo

[This is preliminary documentation and subject to change.]

Accesses class information and binaries for a specific class identifier during COM object activation.

Note  This method is a subset of GetClassSpecInfo. For most cases, GetClassSpecInfo will be the method used to access class information and binaries.

HRESULT GetClassInfo(
  REFCLSID clsid,             //Class identifier
  QUERYCONTEXT QryContext,    //Query attributes
  PACKAGEINFO* pPackageInfo,  //Pointer to binaries and package information
);
 

Parameters

clsid
[in] The specific class identifier used to obtain package information and binaries.
QryContext
[in] The query attributes used to obtain package information and binaries.
pPackageInfo
[out] A pointer to the binaries and package information for a specific class identifier.

Return Values

S_OK
The method returned successfully.
E_INVALIDARG
One or more parameters are incorrect.

Comments

The most common method to access the Class container, GetClassInfo queries the directory for implementations for a specific CLSID. If a matching implementation is available for the object type, client architecture, locale, and class context, a pointer to the binaries and package information is returned. If necessary, the binaries are downloaded to the local computer.

QuickInfo

  Windows NT: Use version 5.0 or later.
  Windows: Unsupported.
  Windows CE: Unsupported.
  Header: Declared in objidl.h.

See Also

IClassAccess::GetClassSpecInfo