IShellIcon Interface
Exposes a method that obtains an icon index for an IShellFolder object.
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,
GetUIObjectOf(IntPtr, UInt32, IntPtr, Guid, IntPtr) 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.
IExtractIconA /
IExtractIconW, on the other hand,
requires that a separate instance of the interface be created for each object.
Namespace: DevCase.Win32.InterfacesAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[ComImportAttribute]
[GuidAttribute("000214E5-0000-0000-C000-000000000046")]
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
public interface IShellIcon
<ComImportAttribute>
<GuidAttribute("000214E5-0000-0000-C000-000000000046")>
<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)>
Public Interface IShellIcon
Dim instance As IShellIcon
[ComImportAttribute]
[GuidAttribute(L"000214E5-0000-0000-C000-000000000046")]
[InterfaceTypeAttribute(ComInterfaceType::InterfaceIsIUnknown)]
public interface class IShellIcon
[<ComImportAttribute>]
[<GuidAttribute("000214E5-0000-0000-C000-000000000046")>]
[<InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)>]
type IShellIcon = interface end
No code example is currently available or this language may not be supported.
GetIconOf
|
Gets an icon for an object inside a specific folder.
If you are unable to retrieve an icon for an object using GetIconOf(PIDL, GetIconLocationFlags, Int32),
use the GetUIObjectOf(IntPtr, UInt32, IntPtr, Guid, IntPtr) method to retrieve an object that supports the
Extract(String, UInt32, IntPtr, IntPtr, UInt32) / Extract(String, UInt32, IntPtr, IntPtr, UInt32) function.
|