🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Accessing Registry

#9646
From: Bob Gonder
Date: Sat, 26 Jun 2004 21:56
12 lines
1433 bytes
Brian Lonnon wrote:

>How can I allow ordinary users to write to keys in HKEY_LOCAL_MACHINE?
>
>I want my program to set NukeOnDelete
>in(HKEY_LOCAL_MACHINE\Software\Microsoft\windows\currentversion\explorer\bit
>bucket) to 1 at startup and reset it to 0 on exit.
>
>Logged on as Administrator, there is no problem. Logged on as a user without
>admin rights, any attempt to write to the key fails.

Is there some reason you don't want to use HKEY_CURRENT_USER ?
Technical Details
Message-ID: <d6srd0p62da16ikkqogthillbkqv5dk2gm@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40dde673$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,d95394da9c6bddf4
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Accessing Registry
Date: Sat, 26 Jun 2004 14:56:36 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <d6srd0p62da16ikkqogthillbkqv5dk2gm@4ax.com>
References: <40dde673$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 69.69.99.248
X-Trace: newsgroups.borland.com 1088287027 69.69.99.248 (26 Jun 2004 14:57:07 -0700)
Lines: 14
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail