Export (0) Print
Expand All
COM
Expand Minimize

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

 

 

Community Additions

ADD
Show:
© 2014 Microsoft