Solved

Locate/retrieve shell icons for MCC .msc files & Favicons

Posted on 2004-08-04
3
520 Views
Last Modified: 2013-12-03
I need to display the proper icons for various files in a ListView. I have this working for most files/associations, but am having trouble with Internet Shortcuts that have an associated FavIcon, and with .MSC (Microsoft Management Console) files, which are different for each .MSC file (I want the icons that Windows Explorer displays when you view your system32 directory).

Please provide working function(s) that retrieves these icons in either C++ or Delphi. The code should work with all versions of windows that support MCC and FavIcons.

500 juicy points for the correct solution.

TIA!
0
Comment
Question by:casterle
  • 2
3 Comments
 
LVL 20

Accepted Solution

by:
Madshi earned 500 total points
Comment Utility
You can use the latest build of madShell:

http://madshi.net/madCollectionBeta.exe

iconHandle := ShellObj('c:\test.url').GetIcon;

madShell is free for non-commercial usage.

------------

Alternatively you can try to do it on your own by using IExtractIcon. That's what madShell uses internally.
0
 

Author Comment

by:casterle
Comment Utility
Hi, Mathias.

I'm already a madCollection customer. As you (now) know, the previous beta of madShell had a problem with .msc files, and that's why I was looking for a work-around here.

Your latest beta version works great! 500 points to you for the quick fix (and the many other quick fixes you've provided in the past!).

For those who program in Delphi or C++ Builder, I can't recommend the madCollection highly enough. Inexpensive, powerful and well supported!
0
 
LVL 20

Expert Comment

by:Madshi
Comment Utility
Thank you...   :-)
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

If you have ever found yourself doing a repetitive action with the mouse and keyboard, and if you have even a little programming experience, there is a good chance that you can use a text editor to whip together a sort of macro to automate the proce…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
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…

743 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

13 Experts available now in Live!

Get 1:1 Help Now