OleGetIconOfClass function (ole2.h)
Returns a handle to a metafile containing an icon and a string label for the specified CLSID.
Syntax
HGLOBAL OleGetIconOfClass(
[in] REFCLSID rclsid,
[in, optional] LPOLESTR lpszLabel,
[in] BOOL fUseTypeAsLabel
);
Parameters
[in] rclsid
The CLSID for which the icon and string are to be requested.
[in, optional] lpszLabel
A pointer to the label for the icon.
[in] fUseTypeAsLabel
Indicates whether to use the user type string in the CLSID as the icon label.
Return value
If the function succeeds, the return value is a handle to a metafile that contains and icon and label for the specified CLSID. Otherwise, the function returns NULL.
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 | ole2.h |
Library | Ole32.lib |
DLL | Ole32.dll |
API set | ext-ms-win-com-ole32-l1-1-3 (introduced in Windows 10, version 10.0.10240) |