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. The Lounge
  3. Windows standards?

Windows standards?

Scheduled Pinned Locked Moved The Lounge
helpquestion
10 Posts 6 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.
  • C Offline
    C Offline
    Christian Skovdal Andersen
    wrote on last edited by
    #1

    Does anybody know where Windows applications should put their application data? It seems that there are lots of games and programs that writes their non-userspecific data in the application directory "\Program Files\MyCompany\MyApp", which poses a huge problem if you do not have write access to that folder. Does anybody know hos applications should behave in that matter? Does anybody know of an document that describes stuff like that? Christian Skovdal Andersen Don't mention the war...

    D J H R 4 Replies Last reply
    0
    • C Christian Skovdal Andersen

      Does anybody know where Windows applications should put their application data? It seems that there are lots of games and programs that writes their non-userspecific data in the application directory "\Program Files\MyCompany\MyApp", which poses a huge problem if you do not have write access to that folder. Does anybody know hos applications should behave in that matter? Does anybody know of an document that describes stuff like that? Christian Skovdal Andersen Don't mention the war...

      D Offline
      D Offline
      Domenic Denicola
      wrote on last edited by
      #2

      Yes! Windows apps put their data in the Application Data folder (call some API call to find the location), I believe. Putting it in the Program Files directory is bad, because limited users on Windows XP do not have write access and will encounter an error. And I have the perfect document for you, but I left it at home :(. If you bug me by e-mail on Sunday, I can get it for you. It's a PPT presentation on how to make games work well with Windows XP (targeted towards game developers). It includes the specifics of all the API calls and such, and even gives a few pages of code on how to register an application extension at startup. I think it's definitely what you need. Anyway, if you don't want to wait, go to the DirectX Developers page, and look for the meltown presentations. It should have on about Windows XP, that's the one.

      -Domenic Denicola- [CPUA 0x1337] Geekn MadHamster Creations

      C D 2 Replies Last reply
      0
      • C Christian Skovdal Andersen

        Does anybody know where Windows applications should put their application data? It seems that there are lots of games and programs that writes their non-userspecific data in the application directory "\Program Files\MyCompany\MyApp", which poses a huge problem if you do not have write access to that folder. Does anybody know hos applications should behave in that matter? Does anybody know of an document that describes stuff like that? Christian Skovdal Andersen Don't mention the war...

        J Offline
        J Offline
        Jens Kreiensiek
        wrote on last edited by
        #3

        with W2k you can use SHGetFolderPath() with CSIDL_LOCAL_APPDATA and place you application data there. ..have fun.. jk :cool:

        C 1 Reply Last reply
        0
        • J Jens Kreiensiek

          with W2k you can use SHGetFolderPath() with CSIDL_LOCAL_APPDATA and place you application data there. ..have fun.. jk :cool:

          C Offline
          C Offline
          Christian Skovdal Andersen
          wrote on last edited by
          #4

          nope, I can't do that. MSDN states:

          CSIDL_LOCAL_APPDATA
          Version 5.0. File system directory that serves as a data repository for local (nonroaming) applications. A typical path is C:\Documents and Settings\username\Local Settings\Application Data.

          The "username" part of the sample path makes is unusable for application, that needs to save data in one place, that should be accessible among all the users on the computer. However, since you pointed my in the right direction, It might be the "CSIDL_COMMON_APPDATA" CSIDL, that could be used. This saves data in a directory for all users. That migth prove interesting. Christian Skovdal Andersen Don't mention the war...

          1 Reply Last reply
          0
          • D Domenic Denicola

            Yes! Windows apps put their data in the Application Data folder (call some API call to find the location), I believe. Putting it in the Program Files directory is bad, because limited users on Windows XP do not have write access and will encounter an error. And I have the perfect document for you, but I left it at home :(. If you bug me by e-mail on Sunday, I can get it for you. It's a PPT presentation on how to make games work well with Windows XP (targeted towards game developers). It includes the specifics of all the API calls and such, and even gives a few pages of code on how to register an application extension at startup. I think it's definitely what you need. Anyway, if you don't want to wait, go to the DirectX Developers page, and look for the meltown presentations. It should have on about Windows XP, that's the one.

            -Domenic Denicola- [CPUA 0x1337] Geekn MadHamster Creations

            C Offline
            C Offline
            Christian Skovdal Andersen
            wrote on last edited by
            #5

            I think I have found out that it is SHGetFolderPath with CSIDL_COMMON_APPDATA, that I should use. However, I would love to take a look at that Powerpoint presentation. Would you consider putting it online, here at CP? BTW: I think you company name is ultra-cool :suss: Christian Skovdal Andersen Don't mention the war...

            1 Reply Last reply
            0
            • C Christian Skovdal Andersen

              Does anybody know where Windows applications should put their application data? It seems that there are lots of games and programs that writes their non-userspecific data in the application directory "\Program Files\MyCompany\MyApp", which poses a huge problem if you do not have write access to that folder. Does anybody know hos applications should behave in that matter? Does anybody know of an document that describes stuff like that? Christian Skovdal Andersen Don't mention the war...

              H Offline
              H Offline
              Henry Jacobs
              wrote on last edited by
              #6

              In the MSDN Library:

              • User Interface Design and Development
              • User Interface Design & Usability
              • Books
              • The Window User Experience
              • Official Guidelines for User Interface Developers and Designers

              The information that Jens refered to is under

              • Design Specifications and Guidelines
              • Integrating with the System
              • Using the File System
              C 1 Reply Last reply
              0
              • H Henry Jacobs

                In the MSDN Library:

                • User Interface Design and Development
                • User Interface Design & Usability
                • Books
                • The Window User Experience
                • Official Guidelines for User Interface Developers and Designers

                The information that Jens refered to is under

                • Design Specifications and Guidelines
                • Integrating with the System
                • Using the File System
                C Offline
                C Offline
                Christian Skovdal Andersen
                wrote on last edited by
                #7

                Thanks, that was it! Now I know everything that I need know regarding Windows filesystem standards. Thnaks a bunch guys! Christian Skovdal Andersen Don't mention the war...

                1 Reply Last reply
                0
                • D Domenic Denicola

                  Yes! Windows apps put their data in the Application Data folder (call some API call to find the location), I believe. Putting it in the Program Files directory is bad, because limited users on Windows XP do not have write access and will encounter an error. And I have the perfect document for you, but I left it at home :(. If you bug me by e-mail on Sunday, I can get it for you. It's a PPT presentation on how to make games work well with Windows XP (targeted towards game developers). It includes the specifics of all the API calls and such, and even gives a few pages of code on how to register an application extension at startup. I think it's definitely what you need. Anyway, if you don't want to wait, go to the DirectX Developers page, and look for the meltown presentations. It should have on about Windows XP, that's the one.

                  -Domenic Denicola- [CPUA 0x1337] Geekn MadHamster Creations

                  D Offline
                  D Offline
                  Domenic Denicola
                  wrote on last edited by
                  #8

                  I found the presentation at http://www.microsoft.com/mscorp/corpevents/meltdown2001/ppt/GamingWinXP.ppt

                  -Domenic Denicola- [CPUA 0x1337] Geekn MadHamster Creations

                  B 1 Reply Last reply
                  0
                  • D Domenic Denicola

                    I found the presentation at http://www.microsoft.com/mscorp/corpevents/meltdown2001/ppt/GamingWinXP.ppt

                    -Domenic Denicola- [CPUA 0x1337] Geekn MadHamster Creations

                    B Offline
                    B Offline
                    Brad Bruce
                    wrote on last edited by
                    #9

                    Just to make it a link and so I could download the file.... http://www.microsoft.com/mscorp/corpevents/meltdown2001/ppt/GamingWinXP.ppt

                    1 Reply Last reply
                    0
                    • C Christian Skovdal Andersen

                      Does anybody know where Windows applications should put their application data? It seems that there are lots of games and programs that writes their non-userspecific data in the application directory "\Program Files\MyCompany\MyApp", which poses a huge problem if you do not have write access to that folder. Does anybody know hos applications should behave in that matter? Does anybody know of an document that describes stuff like that? Christian Skovdal Andersen Don't mention the war...

                      R Offline
                      R Offline
                      Rick York
                      wrote on last edited by
                      #10

                      Personally, I think you should give the users an option of putting in the default/standard location or the place of their choice. I despise it when programs install themselves or their/my data in the 'standard' place. I keep all of my data on one disk partition and back the whole thing up periodically. My OS is a separate partition that I don't back up nearly as often.

                      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