I only know how to do it useing the SHGetFileInfo() API. But that function needs an actual file to exist. I'm wondering if there is a way to get the icon associated with a file without using SHGetFileInfo()???
I know I could create a dummy file and then use it to call SHGetFileInfo() but I rather not do that if there's another way