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, //Pointer to string to use as label for icon
BOOL fUseTypeAsLabel //Whether to use CLSID's user type name as
// icon label
);
Windows NT: Use version 3.1 or later.
Windows: Use Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in ole2.h.
Import Library: Included as a resource in ole32.dll.
OleGetIconOfFile, OleMetafilePictFromIconAndLabel