🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to set security settings on a Reg Key

#16998
From: Claire W
Date: Sun, 13 Apr 2003 22:40
25 lines
1891 bytes
"Remy Lebeau (TeamB)" <gambit47@yahoo.com>

> The Registry has its own security functions.  Have a look at using
> RegSetKeySecurity() instead of SetSecurityInfo().

I'm sure these would be the better choice, but I'm not clear on the concepts
used with regards to groups, owner, admins etc. So I don't know what I would
need to do to allow all users to have write access to the key.

What I do know is having a NULL DACL removes all security to the key and
that's OK for me (it's my own key not an existing one).

I changed in 'aclapi.h'

OUT PACCESS_MASK  pAccessRights
to
OUT ::PACCESS_MASK  pAccessRights

to resolve the ambiguity, (and it worked fine).

Checking on google, the ambibuity can also be cleared by putting the include
for aclapi.h before vcl.h.

Thanks, Claire.
Technical Details
Message-ID: <3e99e7c3@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!sn-xit-08!supernews.com!216.166.71.14.MISMATCH!border3.nntp.aus1.giganews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3e9990a7@newsgroups.borland.com> <3e99c6df$3@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,4f35fdfc32f2cf25
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-04-13 15:44:03 PST
From: "Claire W" <cmw.walker@BeeeeTinternet.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3e9990a7@newsgroups.borland.com> <3e99c6df$3@newsgroups.borland.com>
Subject: Re: How to set security settings on a Reg Key
Date: Sun, 13 Apr 2003 23:40:36 +0100
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4920.2300
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4920.2300
NNTP-Posting-Host: 213.122.178.200
Message-ID: <3e99e7c3@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1050273731 213.122.178.200 (13 Apr 2003 15:42:11 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!sn-xit-08!supernews.com!216.166.71.14.MISMATCH!border3.nntp.aus1.giganews.com!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail