CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2006
    Posts
    9

    listing folders and files on windows 7?

    Im creating a folder and file list for a music application im writing.

    At the moment im using code from this webpage here http://msdn.microsoft.com/en-us/libr...(v=VS.85).aspx

    it uses FindFirstFile.

    Problem is it wont list the contents of "special" folders like "Documents and settings" and "My Documents".

    What can I do, completly stuck.

  2. #2
    Join Date
    Oct 2002
    Location
    Timisoara, Romania
    Posts
    14,360

    Re: listing folders and files on windows 7?

    You can't read them, because they are not normal folder but junction points, pointing to a location in the Users folder. They have the file attributes set to FILE_ATTRIBUTE_REPARSE_POINT and FILE_ATTRIBUTE_SYSTEM and the ACL’s are set to "Everyone Deny Read".

    You can read more here: http://msdn.microsoft.com/en-us/library/bb756982.aspx.
    Last edited by cilu; January 10th, 2011 at 02:59 AM.
    Marius Bancila
    Home Page
    My CodeGuru articles

    I do not offer technical support via PM or e-mail. Please use vbBulletin codes.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured