ICatRegister::RegisterClassImplCategories Method

Registers the class as implementing one or more component categories.

Syntax

C++
HRESULT RegisterClassImplCategories(
  [in]  REFCLSID rclsid,
  [in]  ULONG cCategories,
  [in]  CATID rgcatid[]
);

Parameters

rclsid [in]

The class identifier.

cCategories [in]

The number of categories to be associated as category identifiers for the class.

rgcatid [in]

An array of CATIDs to associate as category identifiers for the class.

Return Value

This method can return the following values.

Return codeDescription
S_OK

The method completed successfully.

E_INVALIDARG

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

Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderComCat.h
IDLComCat.idl
IIDIID_ICatRegister is defined as 0002E012-0000-0000-C000-000000000046

See Also

ICatRegister

Send comments about this topic to Microsoft

Build date: 11/12/2009

Tags :


Page view tracker