Registers the class as implementing one or more component categories.
HRESULT RegisterClassImplCategories(
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 for which category information will be set.
cCategories
[in] The number of category CATIDs to associate as category identifiers for the class.
rgcatid
[in] The array of cCategories CATID to associate as category identifiers for the class.
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. This function can only be called by the owner of a class, usually as part of the installation of the component.
See Also
ICatRegister::RegisterCategories, ICatRegister::RegisterClassReqCategories, ICatRegister::UnRegisterCategories, ICatRegister::UnRegisterClassImplCategories, ICatRegister::UnRegisterClassReqCategories