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. General Programming
  3. Windows API
  4. Sample File location in Vista?

Sample File location in Vista?

Scheduled Pinned Locked Moved Windows API
question
2 Posts 2 Posters 0 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.
  • H Offline
    H Offline
    himpact
    wrote on last edited by
    #1

    Hello, My install packages installed a set of sample input file that are shared among users. Normally, these are install in the application installed directory. In Vista, however, this became and issues since access to such folder is limited. Where is the proper location for installing sample files that all users can view? What is the typical ways of dealing with something like this? Thanks HL

    J 1 Reply Last reply
    0
    • H himpact

      Hello, My install packages installed a set of sample input file that are shared among users. Normally, these are install in the application installed directory. In Vista, however, this became and issues since access to such folder is limited. Where is the proper location for installing sample files that all users can view? What is the typical ways of dealing with something like this? Thanks HL

      J Offline
      J Offline
      Jonathan Darka
      wrote on last edited by
      #2

      Use the SHGetSpecialFolderPath() api call with the nFolder parameter set to either: For per user app data (e.g. C:\Documents and Settings\username\Application Data) CSIDL_APPDATA or for app data common to all users (e.g. C:\Documents and Settings\All Users\Application Data) CSIDL_COMMON_APPDATA regards,


      Jonathan Wilkes Darka[Xanya.net]

      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