IShellIconOverlay in VB.NET


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.)
Who is Participating?
abelConnect With a Mentor Commented:
Instead of using the interface, Microsoft suggests you use the SHGetIconOverlayIndex function instead:, which is quite straightforward to use.

Here's the C# signature:

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

-- Abel --
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.