Any idea on how to enum ZIP files under XP ?
-
I've got a file explorer application - like Windows Explorer - and recently I discovered that ZIP files didn't show anymore in the file view under XP. I've read at MSDN that people should now use IFolderView instead of IShellFolder but I just want my ZIP files back with a W95 to XP compatible solution. As I don't have XP it is very difficult to test. Is there any shell guru there that can tell me what's wrong with my code so that in the end I can process ZIP files ?
hr = lpsfFolder->EnumObjects(NULL, SHCONTF_FOLDERS|SHCONTF_NONFOLDERS, &pItems);
while (hr == NOERROR) {
hr = pItems->Next(1, &pidlNext, NULL);
if (hr == NOERROR) {
lpsfFolder->GetAttributesOf(1, (LPCITEMIDLIST*)&pidlNext, &dwFileAttributes);
if (dwFileAttributes & SFGAO_FOLDER) {
//
// Are ZIP files Folders under XP ?
//
}
else {
lpsfFolder->GetDisplayNameOf(pidlNext, SHGDN_FORPARSING, &StrRetFile);
StrRetToStr(StrRetFile, &lpszFileName, pidlNext, lpMalloc);
//
// The ZIP files never get there and that's were I used to trap
//them
...
}
...
// and so onHow do you call this new property of ZIP files to be processed as folders by Window ? I can't find any info anywhere but it seem pretty interesting - when they show Thanks, btw I moved this thread form the C++ forum to the OS forum Yarp