Need to find Icon for MyComputer

  • Thread starter Thread starter SamSpade
  • Start date Start date
S

SamSpade

I found the icons for files and folders using
Call SHGetFileInfo(subDir, 0, mSHI, mSHISize, Win32.Shell.SHGFI_ICON)

but can't find the system icon for MyComputer.

Later I'd like to also find a way of tapping into the icons used by the
system for MyNetworkPlaces, Desktop ...


Any suggestions??
 
Any suggestions??

Call SHGetFileInfo with the SHGFI_PIDL flag, and specify the PIDL for
My Computer rather than a file path as the first parameter. You can
get PIDLs for the common system folders with
SHGetSpecialFolderLocation.



Mattias
 
Sounds like what I need

thanks

Mattias Sjögren said:
Call SHGetFileInfo with the SHGFI_PIDL flag, and specify the PIDL for
My Computer rather than a file path as the first parameter. You can
get PIDLs for the common system folders with
SHGetSpecialFolderLocation.



Mattias
 
Back
Top