PadexArt
April 14th, 2003, 05:59 AM
Hello,
I'm try to parse the shell namespace, extract the names, determine if an item has childs and also retrieve the icon. Everything works fine the problem beeing that for some objects no icon is available.
What is most disturbing is that this objects are the fixed drives and the computers in the LAN. I wasn't expecting to have problems here.Instead of the icon dispayed in Windows Explorer I get the icon wich is employed for fiels with no association.
I've tried using SHGetFileInfo as well as IExtractIcon. In the second case, for the problem objects, I cannot retrieve the desired interface. Could you tell why?
Using SHGetFileInfo, for some shell objects, tge correct icon index is retrieved is using their name "for parsing"( SHGDN_FORPARSING) while for others the correct index is obtained is using the PIDL.
Anyone knows why this happen? ( 2 different values for the same shell object, depening on the identifier used: PIDL or name). The funniest part is that the name for parsing is obtained using the PIDL. :confused:
Thx a lot.
I'm try to parse the shell namespace, extract the names, determine if an item has childs and also retrieve the icon. Everything works fine the problem beeing that for some objects no icon is available.
What is most disturbing is that this objects are the fixed drives and the computers in the LAN. I wasn't expecting to have problems here.Instead of the icon dispayed in Windows Explorer I get the icon wich is employed for fiels with no association.
I've tried using SHGetFileInfo as well as IExtractIcon. In the second case, for the problem objects, I cannot retrieve the desired interface. Could you tell why?
Using SHGetFileInfo, for some shell objects, tge correct icon index is retrieved is using their name "for parsing"( SHGDN_FORPARSING) while for others the correct index is obtained is using the PIDL.
Anyone knows why this happen? ( 2 different values for the same shell object, depening on the identifier used: PIDL or name). The funniest part is that the name for parsing is obtained using the PIDL. :confused:
Thx a lot.