CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2003
    Posts
    53

    Finding Application Data folder

    Hi,

    I can use the SHGetSpecialFolderPath function to find a link to the current user's Application Data folder by passing CSIDL_APPDATA. However, I need a link to the Application Data folder in 'All Users', not the current user.

    Is there a quick, easy way of getting this?

    Is it perhaps just a matter of updating one of my header files since my Visual Studio was written for '98 when such a folder didn't exist.

    Thanks for your help,
    Jim

  2. #2
    Join Date
    Sep 2002
    Location
    Maryland - Fear The Turtle!
    Posts
    7,537
    CSIDL_COMMON_APPDATA
    Version 5.0. Application data for all users. A typical path is C:\Documents and Settings\All Users\Application Data.

  3. #3
    Join Date
    Mar 2003
    Posts
    53
    Thanks. but in my version, there is no CSIDL_COMMON_APPDATA, only CSIDL_APPDATA. Where can I get the new header file or whatever it is I need?

    Thanks.

  4. #4
    Join Date
    Sep 2002
    Location
    Maryland - Fear The Turtle!
    Posts
    7,537
    Originally posted by Jim1981
    Thanks. but in my version, there is no CSIDL_COMMON_APPDATA, only CSIDL_APPDATA. Where can I get the new header file or whatever it is I need?

    Thanks.
    platform SDK.. msdn.microsoft.com

    Code:
    #define CSIDL_COMMON_APPDATA            0x0023      // All Users\Application Data

  5. #5
    Join Date
    Sep 2002
    Location
    Maryland - Fear The Turtle!
    Posts
    7,537

  6. #6
    Join Date
    Mar 2003
    Posts
    53
    Great. Thanks again.

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