Click to See Complete Forum and Search --> : SHGetDataFromIDList


Carsten Witte
August 11th, 1999, 11:16 AM
Hi Gurus, I have no luck in getting the comment for a given machine when enumerating via shellfolders.

At the point, where I got a correct folder and item (must be correct since I get the correct name and icon, what is predicable, since lpItem came from lpFolder->EnumObjects) and tried a:


NETRESOURCE nrc;
::ZeroMemory (&nrc, sizeof (nrc));
hResult= SHGetDataFromIDList (lpFolder, lpItem, SHGDFIL_NETRESOURCE, (PVOID) &nrc, sizeof (nrc));




It simply fails on all machines that are part of my workgroup and therefore childen of the CSIDL_NETWORK and works fine on anything under "Entire Network". But not even then it wouldn't fill *any* of the nrc.lp* entries.

What's wrong?

TIA, Carsten Witte

(cf. http://www.codeguru.com/mfc/comments/8273.shtml?0.893511313479394