Solved

IShellIconOverlay in VB.NET

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
VB.Net - Not Sure if Multi-threading is What I Need 4 31
Optimize the query 5 43
Get month and date in a format 4 35
Reactjs with .NET 3 37
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

820 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