ICatInformation::IsClassOfCategories method

Determines whether a class implements one or more categories.

Syntax

HRESULT IsClassOfCategories(
  REFCLSID       rclsid,
  ULONG          cImplemented,
  const CATID [] rgcatidImpl,
  ULONG          cRequired,
  const CATID [] rgcatidReq
);

Parameters

rclsid

The class identifier.

cImplemented

The number of category IDs in the rgcatidImpl array. This value cannot be zero. If this value is -1, the implemented categories are not tested.

rgcatidImpl

An array of category identifiers.

If the class requires a category not listed in rgcatidReq, it is not included in the enumeration.

cRequired

The number of category IDs in the rgcatidReq array. This value can be zero. If this value is -1, the required categories are not tested.

rgcatidReq

An array of category identifiers.

Return Value

If the class ID is of one of the specified categories, the return value is S_OK. Otherwise, is it S_FALSE.

Requirements

   
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header comcat.h

See Also

ICatInformation