Solved

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

Posted on 2004-08-04
3
523 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
ID: 11733668
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
ID: 11766139
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
ID: 11766304
Thank you...   :-)
0

Featured Post

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

This article shows how to make a Windows 7 gadget that accepts files dropped from the Windows Explorer.  It also illustrates how to give your gadget a non-rectangular shape and how to add some nifty visual effects to text displayed in a your gadget.…
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…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

777 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