๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Trying DeleteKey in the registry

#16653
From: Nico Bendlin
Date: Sat, 03 May 2003 12:13
17 lines
1698 bytes
Fernando Alvarez wrote:
> Then, I have done a test. I have wrotten a new key in
> HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
> with name Hello and value nothing.
> So, I have changed my code and it doesn๏ฟฝt work again.

a) 'Hello' is an value - not a key.

   So DeleteKey() is the wrong method.
   Open the key and delete the value.

b) You don't have KEY_ALL_ACCESS on the key.

   Specify only the required rights
   on creating the Registry object.

- nico
Technical Details
Message-ID: <3eb3b192@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3eb2faf3$1@newsgroups.borland.com> <3eb2fbdb$1@newsgroups.borland.com> <3eb30123@newsgroups.borland.com> <3eb302cb$1@newsgroups.borland.com> <3eb30488$1@newsgroups.borland.com> <3eb30813$1@newsgroups.borland.com> <3eb39873@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10cc67,3359b20f1ef9dc9
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-05-03 05:15:21 PST
Date: Sat, 03 May 2003 14:13:17 +0200
From: Nico Bendlin <nicode@net.gmx>
User-Agent: Mozilla/5.0
X-Accept-Language: de, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Trying DeleteKey in the registry
References: <3eb2faf3$1@newsgroups.borland.com> <3eb2fbdb$1@newsgroups.borland.com> <3eb30123@newsgroups.borland.com> <3eb302cb$1@newsgroups.borland.com> <3eb30488$1@newsgroups.borland.com> <3eb30813$1@newsgroups.borland.com> <3eb39873@newsgroups.borland.com>
In-Reply-To: <3eb39873@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 217.225.52.90
Message-ID: <3eb3b192@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1051963794 217.225.52.90 (3 May 2003 05:09:54 -0700)
Lines: 18
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail