COM
Expand Minimize
This topic has not yet been rated - Rate this topic

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

Ole2.h

Library

Ole32.lib

DLL

Ole32.dll

See also

OleGetIconOfFile
OleMetafilePictFromIconAndLabel

 

 

Send comments about this topic to Microsoft

Build date: 5/16/2013

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.