Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

IShellIconOverlay in VB.NET

Posted on 2009-06-29
1
Medium Priority
?
692 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 2000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

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…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

722 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