IShellIcon interface

Exposes a method that obtains an icon index for an IShellFolder object.

Members

The IShellIcon interface inherits from the IUnknown interface. IShellIcon also has these types of members:

Methods

The IShellIcon interface has these methods.

MethodDescription
GetIconOf

Gets an icon for an object inside a specific folder.

 

Remarks

Implement IShellIcon when creating an IShellFolder implementation to provide a quick way to obtain the icon for an object in the folder.

If IShellIcon is not implemented by an IShellFolder object, IShellFolder::GetUIObjectOf is used to retrieve an icon for all objects.

Use IShellIcon when retrieving the icon index for an item in a Shell folder.

IShellIcon allows an application to obtain the icon for any object within a folder by using only one instance of the interface. IExtractIcon, on the other hand, requires that a separate instance of the interface be created for each object.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Shobjidl.h

IDL

Shobjidl.idl

DLL

Shell32.dll (version 4.0 or later)

 

 

Show: