[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 2004-08-04
3
Medium Priority
?
536 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 20

Accepted Solution

by:
Madshi earned 2000 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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
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…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

656 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