OleGetIconOfClass

Returns a handle to a metafile containing an icon and a string label for the specified CLSID.

HGLOBAL OleGetIconOfClass(

REFCLSID rclsid,
//CLSID for which information is requested
LPOLESTR lpszLabel,
//Points to string to use as label for icon
BOOL fUseTypeAsLabel
//Indicates whether to use CLSID's user type name as icon label
);

Parameters

rclsid

Specifies the CLSID for which the icon and string are requested.

lpszLabel

Points to a string to use as a label for the icon.

fUseTypeAsLabel

Indicates whether or not to use the user type string in the CLSID as the icon label.

Return Value

HGLOBAL

The hGlobal returned is a handle to a metafile that contains an icon and label for the specified CLSID. If the CLSID cannot be found in the registration database, NULL is returned.

See Also

OleGetIconOfFile, OleMetafilePictFromIconAndLabel

Software for developers
Delphi Components
.Net Components
Software for Android Developers
More information resources
MegaDetailed.Net
Unix Manual Pages
Delphi Examples
Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database