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.