Article View: borland.public.cppbuilder.nativeapi
Article #11878Re: Registry Editing & Security
From: Remy Lebeau (TeamB)
Date: Fri, 09 Jan 2004 21:01
Date: Fri, 09 Jan 2004 21:01
23 lines
2005 bytes
2005 bytes
"HernοΏ½n Tornielli" <hernan@nospam.net> wrote in message news:3fff11ec@newsgroups.borland.com... > An ini file is a good idea. However, users cannot write to > the Program Files folder. That is not where you should be storing the file anyway. Microsoft is very specific about where applications are supposed to store their data files. You should be storing it under the "Application Data" folder, usually under your own subfolder with that location. Use SHGetSpecialFolderLocation() with the CSIDL_COMMON_APPDATA to get the appropriate location for the machine your program is actually running on. You need minimum IE5 installed in order to use CSIDL_COMMON_APPDATA, otherwise you'll have to ignore using SHGetSpecialFolderLocation() and just look in the Registry for the path manually instead. > AFAIK, there is no common folder where all users can write to. Yes, there is. See above. Gambit
Technical Details
Message-ID:
<3fff1556$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!fr.ip.ndsoftware.net!proxad.net!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<3ffd6729$1@newsgroups.borland.com> <3ffda90d$1@newsgroups.borland.com> <3ffe1fbd@newsgroups.borland.com> <ejasvv45fkrbbouu65t99ob4q2mgpt1amq@4ax.com> <3fff11ec@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10cc67,9e80007e230535d8 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-01-09 13:06:02 PST From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3ffd6729$1@newsgroups.borland.com> <3ffda90d$1@newsgroups.borland.com> <3ffe1fbd@newsgroups.borland.com> <ejasvv45fkrbbouu65t99ob4q2mgpt1amq@4ax.com> <3fff11ec@newsgroups.borland.com> Subject: Re: Registry Editing & Security Date: Fri, 9 Jan 2004 13:01:53 -0800 Lines: 25 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 67.22.138.253 Message-ID: <3fff1556$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1073681750 67.22.138.253 (9 Jan 2004 12:55:50 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!fr.ip.ndsoftware.net!proxad.net!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail