ICatInformation::IsClassOfCategories

This method determines if a class implements one or more categories. If the class requires a category not listed in the rgcatidReq parameter, it is not included in the enumeration.

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

Parameters

  • rclsid
    [in] Class identifier of the relevant class to query.
  • cImplemented
    [in] Number of category identifiers in the rgcatidImpl array. This value cannot be zero. If this value is ((ULONG) -1), the implemented categories are not tested.
  • rgcatidImpl
    [in] Array of category identifiers.
  • cRequired
    [in] Number of category identifiers in the rgcatidReq array. This value can be zero. If this value is ((ULONG) -1), the required categories are not tested.
  • rgcatidReq
    [in] Array of category identifiers.

Return Values

If the rclsid is of category rcatid then the method returns S_OK; otherwise it returns S_FALSE.

Remarks

To determine whether the platform supports this interface, see Determining Supported COM APIs.

Requirements

OS Versions: Windows CE 3.0 and later.
Header: Comcat.h, Comcat.idl.
Link Library: Ole32.lib, Uuid.lib.

See Also

ICatInformation::EnumCategories | ICatInformation::EnumClassesOfCategories | ICatInformation::EnumImplCategoriesOfClass | ICatInformation::EnumReqCategoriesOfClass | ICatInformation::GetCategoryDesc

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.