Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. System Admin
  4. Any idea on how to enum ZIP files under XP ?

Any idea on how to enum ZIP files under XP ?

Scheduled Pinned Locked Moved System Admin
c++linuxtutorialquestion
1 Posts 1 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    yarp
    wrote on last edited by
    #1

    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 on

    How 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

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups