Article View: borland.public.cppbuilder.nativeapi
Article #11146Re: Another registry question
From: Remy Lebeau (TeamB)
Date: Mon, 23 Feb 2004 18:39
Date: Mon, 23 Feb 2004 18:39
21 lines
1771 bytes
1771 bytes
"Martin C" <martinc@aol.com> wrote in message
news:403a07ed@newsgroups.borland.com...
> I need to make my program Read/Write to my application registry
> key under HKLM for any type of XP user *without* the need of
> admin to change the registry access rights.
That is only possible if your application is the one creating the key in the
first place. When you call RegCreateKeyEx(), you can specify the desired
access rights for the key via the lpSecurityAttributes parameter. You can
try giving the key a NULL DACL to permit access by everyone. Alternatively,
you can specify that admins have full access while users have limited
access, as shown in the following example:
Creating a Security Descriptor for a New Object in C++
http://msdn.microsoft.com/library/en-us/security/security/creating_a_security_descriptor_for_a_new_object_in_c__.asp
Gambit
Technical Details
Message-ID:
<403a4702$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:
<403a07ed@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,a8b8e0e2d3384b4d X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2004-02-23 10:40:27 PST From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <403a07ed@newsgroups.borland.com> Subject: Re: Another registry question Date: Mon, 23 Feb 2004 10:39:38 -0800 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: 67.22.138.253 Message-ID: <403a4702$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1077561090 67.22.138.253 (23 Feb 2004 10:31:30 -0800) 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