ICatRegister::UnRegisterClassImplCategories

Removes one or more implemented category identifiers from a class.

HRESULT UnRegisterClassImplCategories(
  REFCLSID rclsid,    //Class ID of the relevent class
  ULONG cCategories,  //Number of category CATIDs
  CATID* rgcatid      //Array of cCategories CATID
);
 

Parameters

rclsid
[in] The class ID of the relevant class to be manipulated.
cCategories
[in] The number of category CATIDs to remove.
rgcatid
[in] The array of cCategories CATID that are to be removed. Only the category IDs specified in this array are removed.

Return Values

S_OK
The function was successful.
E_INVALIDARG
One or more arguments are incorrect.

Remarks

In case of an error, this function does not ensure that the Registry is restored to the state prior to the call. The call will be successful even if one or more of the category IDs specified are not registered for the class. This function can only be called by the owner of a class, usually as part of the de-installation of the component.

QuickInfo

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

See Also

ICatRegister::RegisterCategories, ICatRegister::RegisterClassImplCategories, ICatRegister::RegisterClassReqCategories, ICatRegister::UnRegisterCategories, ICatRegister::UnRegisterClassReqCategories