ICatRegister::RegisterClassReqCategories method (comcat.h)
Registers the class as requiring one or more component categories.
Syntax
HRESULT RegisterClassReqCategories(
[in] REFCLSID rclsid,
[in] ULONG cCategories,
[in] CATID [] rgcatid
);
Parameters
[in] rclsid
The class identifier.
[in] cCategories
The number of category CATIDs to be associated as category identifiers for the class.
[in] rgcatid
An array of CATIDs to be associated as category identifiers for the class.
Return value
This method can return the following values.
Return code | Description |
---|---|
|
The method completed successfully. |
|
One or more arguments are incorrect. |
Remarks
In case of an error, this method does not ensure that the registry is restored to the state prior to the call. This method can only be called by the owner of a class, usually as part of the installation of the component.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for