# ICatRegister::UnRegisterClassReqCategories

Removes one or more required category identifiers from a class.

HRESULT UnRegisterClassReqCategories(

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 relevent 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.

See Also

ICatRegister::RegisterCategories, ICatRegister::RegisterClassImplCategories, ICatRegister::UnRegisterCategories, ICatRegister::UnRegisterClassImplCategories, ICatRegister::RegisterClassReqCategories