IShellIcon interface (shobjidl_core.h)

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

Inheritance

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

Methods

The IShellIcon interface has these methods.

 
IShellIcon::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

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header shobjidl_core.h (include Shobjidl.h)