Solved

IShellIconOverlay in VB.NET

Posted on 2009-06-29
1
616 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
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

708 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now