How to get the drive icons as used in Windows Explorer?

After a lot of digging, I found this: https://tabbles.net/how-to-have-large-file-icons-with-shgetfileinfo-in-c/

The issue is that SHGetFileInfo can get small, pre-XP, style icons which are 16x16, but to get the larger modern Vista and Win7 'Jumbo' icons, which are up to 256x256, you need to use more complex multi-step method. The link provides code.


You should be careful what icons you use since a lot of them cannot be licensed. But you sure are allowed to use the ones you find under

c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\VS2010ImageLibrary\1033\VS2010ImageLibrary.zip (example for Visual Studio 2010)

or

c:\Program Files (x86)\Microsoft Visual Studio 8\Common7\VS2005ImageLibrary\VS2005ImageLibrary.zip (exampel for Visual Studio 2005)