ICatInformation::IsClassOfCategories method (comcat.h)

Determines whether a class implements one or more categories.

Syntax

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

Parameters

[in] rclsid

The class identifier.

[in] 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.

[in] rgcatidImpl

An array of category identifiers.

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

[in] 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.

[in] 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

Requirement Value
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