OleGetIconOfClass function
Returns a handle to a metafile containing an icon and a string label for the specified CLSID.
Syntax
HGLOBAL OleGetIconOfClass( _In_ REFCLSID rclsid, _In_opt_ LPOLESTR lpszLabel, _In_ BOOL fUseTypeAsLabel );
Parameters
- rclsid [in]
-
The CLSID for which the icon and string are to be requested.
- lpszLabel [in, optional]
-
A pointer to the label for the icon.
- fUseTypeAsLabel [in]
-
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
|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
Show: