Solved

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

Posted on 2004-08-04
3
521 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
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…

911 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

20 Experts available now in Live!

Get 1:1 Help Now