Windows 7 has very nice icons for each drive when you view "Computer". It puts the right icon for CDs, SD cards, USB sticks, USB hard drives, etc.
It looks like this:
I would like to access those icons and use the right ones in my UI. I have tried various methods of accessing folder icons and file icons, but nothing works. What doesn't work:
Icon.ExtractAssociatedIcon("F:\")
SHGetFileInfo("F:\", 0, ref shinfo, (uint)Marshal.SizeOf(shinfo), Win32.SHGFI_ICON | Win32.SHGFI_SMALLICON);
ShellObject.FromParsingName("F:\").Thumbnail
What else can I try, or what am I doing wrong?
EDIT: I am not looking for a source of icons, I am trying to get the correct icon for each drive.