Solved

IShellIconOverlay in VB.NET

Posted on 2009-06-29
1
669 Views
Last Modified: 2013-11-26
Hello,

Can you give me an example code how to use IShellIconOverlay in VB.NET ?

(I need to get the index of overlay icon in system image list.)
0
Comment
Question by:JiriNovotny
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 39

Accepted Solution

by:
abel earned 500 total points
ID: 24743048
Instead of using the interface, Microsoft suggests you use the SHGetIconOverlayIndex function instead: http://msdn.microsoft.com/en-us/library/bb762183(VS.85).aspx, which is quite straightforward to use.

Here's the C# signature: http://www.pinvoke.net/default.aspx/shell32/SHGetIconOverlayIndex.html

It translates to this in VB:
<DllImport("shell32.dll")> _Private Shared Function SHGetIconOverlayIndex(pszIconPath As String, iIconIndex As Int32) As System.Int32

-- Abel --
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question