ICatInformation::EnumCategories method (comcat.h)

Retrieves an enumerator for the component categories registered on the system.

Syntax

HRESULT EnumCategories(
  [in]  LCID              lcid,
  [out] IEnumCATEGORYINFO **ppenumCategoryInfo
);

Parameters

[in] lcid

The requested locale for any return szDescription of the enumerated categories. Typically, the caller specifies the value returned from the GetUserDefaultLCID function.

[out] ppenumCategoryInfo

A pointer to a pointer to an IEnumCATEGORYINFO interface. This can be used to enumerate the CATIDs and localized description strings of the component categories registered with the system.

Return value

This method can return the standard return values E_INVALIDARG, E_OUTOFMEMORY, and S_OK.

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

ICatInformation