🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Trying DeleteKey in the registry

#16656
From: Fernando Alvarez
Date: Sat, 03 May 2003 17:29
28 lines
2183 bytes
Thank You Gambit, Thank You Chris and Thank You Nico Bendlin.

My error was that Kazaa and Hello isn?t a key , is a value, so I must use
DeleteValue. Now it works perfectly. I have seen your code Chris and it is
very interesting. I will use it.

Thank you very much.

"Nico Bendlin" <nicode@net.gmx> escribi� en el mensaje
news:3eb3b192@newsgroups.borland.com...
> 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: <3eb3fc60$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!yellow.newsread.com!netaxs.com!newsread.com!feed2.newsreader.com!newsreader.com!newshosting.com!news-xfer1.atl.newshosting.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> <3eb3b192@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 10:38:05 PST
From: "Fernando Alvarez" <ferjat@lycos.es>
Newsgroups: borland.public.cppbuilder.nativeapi
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> <3eb3b192@newsgroups.borland.com>
Subject: Re: Trying DeleteKey in the registry
Date: Sat, 3 May 2003 19:29:05 +0200
Lines: 30
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: 81.203.10.123
Message-ID: <3eb3fc60$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1051982944 81.203.10.123 (3 May 2003 10:29:04 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!yellow.newsread.com!netaxs.com!newsread.com!feed2.newsreader.com!newsreader.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail