Solved

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

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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 …
A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
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…

808 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