Article View: borland.public.cppbuilder.nativeapi
Article #823Re: Registry
From: Alan Bellingham
Date: Sat, 01 Dec 2007 02:09
Date: Sat, 01 Dec 2007 02:09
37 lines
2529 bytes
2529 bytes
Colin B Maharaj <noreply@myhost.com> wrote: >For all user settings, use HKEY_USERS (your hKey) >then..... >".DEFAULT\\Software\\Your Company\\Your Software Title\\" (your SubKey) >as the starting point for your settings..... > >It will work in Win2k (all), WinXp Pro, Win2003 Server(s), Win Vista (all). > >I have software that works on all these platforms without any >tricky coding and all work perfectly - same code base same EXE. Unfortunately, attempting to create a new key under HKEY_USERS\.DEFAULT\Software just fails with an error for me. (That the HKEY_USERS\.DEFAULT appears to be the place where the Local System account stores stuff (and nothing to do with default users at all) probably doesn't help.) The *only* keys on this machine that I have write access to are HKEY_USERS\S-1-5-21-796845957-117609710-839522115-1003 and HKEY_USERS\S-1-5-21-796845957-117609710-839522115-1003_Classes, which I am under the impression is specific to this user SID. So I think I don't understand your solution. Remember, the objective is to provide a place where all users can both read and write values. My personal inclination would be to create a key during installation as HKEY_LOCAL_MACHINE\Software\MyCompany\MySoftware\SharedSettings, and set that key to be accessible to all. That'd require elevated permissions during install, but I need that anyway. Alan Bellingham -- Team Browns <url:http://www.borland.com/newsgroups/> Borland newsgroup descriptions <url:http://www.borland.com/newsgroups/netiquette.html> netiquette
Technical Details
Message-ID:
<juf1l3hc9jocke5s8s8bpt4g4d8kruarg7@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!news2.euro.net!feeder.news-service.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<474a4ca5$1@newsgroups.borland.com> <474a90b4@newsgroups.borland.com> <474f5083@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,fb6bafcdf64ba755 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Alan Bellingham <alanb@episys.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Registry Date: Sat, 01 Dec 2007 02:09:31 +0000 Reply-To: alanb@episys.com Message-ID: <juf1l3hc9jocke5s8s8bpt4g4d8kruarg7@4ax.com> References: <474a4ca5$1@newsgroups.borland.com> <474a90b4@newsgroups.borland.com> <474f5083@newsgroups.borland.com> X-Newsreader: Forte Agent 4.2/32.1118 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 62.49.31.105 X-Trace: newsgroups.borland.com 1196474978 62.49.31.105 (30 Nov 2007 18:09:38 -0700) Lines: 37 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!news2.euro.net!feeder.news-service.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail