🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #11876

Re: Registry Editing & Security

#11876
From: Hern�n Tornielli
Date: Fri, 09 Jan 2004 20:33
20 lines
1654 bytes
"John" <jhgfdjgs@jkbfjh.com> escribi� en el
mensaje news:3ffe1fbd@newsgroups.borland.com...

> The keys must be accessible regardless of the permissions of the
> current user (assume minimum of the default "users group" permission
> level).

You mean accessible for reading and writing?

If you want to use the registry for this, AFAIK the only way to go is:

- Require your app to be installed by an admin
- At install time, modify the access rights to the HKLM\XXXX registry key
granting full access to the world. To do so, you may use
::GetNamedSecurityInfo(), ::SetEntriesInAcl(), and
::SetNamedSecurityInfo().

Then any user will be able to write to that registry key.

Hernan Tornielli
Technical Details
Message-ID: <3fff0fc8@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <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
X-Google-Thread: 10cc67,9e80007e230535d8
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-01-09 12:40:24 PST
From: "Hern�n Tornielli" <hernan@nospam.net>
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: Fri, 9 Jan 2004 17:33:33 -0300
Lines: 23
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: 200.59.38.70
Message-ID: <3fff0fc8@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1073680328 200.59.38.70 (9 Jan 2004 12:32:08 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail