Article View: borland.public.cppbuilder.nativeapi
Article #11968Re: Registry Editing & Security
From: Remy Lebeau (TeamB)
Date: Fri, 09 Jan 2004 05:10
Date: Fri, 09 Jan 2004 05:10
31 lines
2181 bytes
2181 bytes
"John" <jhgfdjgs@jkbfjh.com> wrote in message news:3ffe1fbd@newsgroups.borland.com... > I need to read and write information in the registry that will > be accessible by all users of the target system. This must be > accessible by exactly the same registry path from each user. > This must happen at run-time, and the keys cannot be pre- > created at install time (when an admin may be logged-on). > The keys must be accessible regardless of the permissions > of the current user (assume minimum of the default "users > group" permission level). Then what you ask for is simply not doable as you describe it. Registry security won't allow it without admin intervention to set up permissions. You will probably just have to use a file instead. > What I would really like access to is HKLM so that it is exactly > the same path for all users of the system. Why exactly do you need this in the first place? > Is there a different root key I am missing that is accessible by all > users, regardless of permissions? HKEY_CLASSES_ROOT, although I do not recommend that you use it for application settings that do not apply to the system itself, since that is what HKCR is meant for. Gambit
Technical Details
Message-ID:
<3ffe3685$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3ffd6729$1@newsgroups.borland.com> <3ffda90d$1@newsgroups.borland.com> <3ffe1fbd@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,9e80007e230535d8 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-01-08 21:09:47 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> Subject: Re: Registry Editing & Security Date: Thu, 8 Jan 2004 21:10:58 -0800 Lines: 33 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: <3ffe3685$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1073624709 67.22.138.253 (8 Jan 2004 21:05:09 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail