Why Application Data folder is not accessiable? RRS feed

  • Question

  • I am using Vista 5487

    (System Drive:)\Users\default\AppData\Local\Application Data  is not accessiable.

    BOOL bVal = Finder.FindFile("C:\\Users\\default\\AppData\\Local\\Application Data");

    or FindNextFile

    return true 

    and Finder.GetFileName() returns "Application Data"

    We have the solution for this by replacing this with SDK calls as follows
    IN32_FIND_DATA FileData;
    HANDLE hSearch = NULL;     
    BOOL bFound = FALSE;
    hSearch = FindFirstFile("C:\\Users\\default\\AppData\\Local\\Application Data", &FileData);     
    if(hSearch == INVALID_HANDLE_VALUE)//gives invlid handle for "Application Data"
    return ;

    This works fine but,

    Why not in MFC?

    any Ans?


    Wednesday, August 16, 2006 12:16 PM