Article View: borland.public.cppbuilder.nativeapi
Article #16646Re: Trying DeleteKey in the registry
From: Fernando Alvarez
Date: Fri, 02 May 2003 23:37
Date: Fri, 02 May 2003 23:37
35 lines
1762 bytes
1762 bytes
How can I use GetLastError?
The return value of DeleteKey is 0. result=0;
The code now is:
include <registry.hpp>
int result;
TRegistry *registry = new TRegistry();
registry->RootKey = HKEY_LOCAL_MACHINE;
result=registry->DeleteKey("\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\
Run\\KAZAA");
delete registry;
Thank you Gambit.
"Remy Lebeau (TeamB)" <gambit47@yahoo.com> escribi๏ฟฝ en el mensaje
news:3eb2fbdb$1@newsgroups.borland.com...
>
> "Fernando Alvarez" <ferjat@lycos.es> wrote in message
> news:3eb2faf3$1@newsgroups.borland.com...
>
> >
>
registry->DeleteKey("\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\\KA
> ZAA");
>
> What is the return value of DeleteKey()? If false, what is the return
value
> of the Win32 API function GetLastError()?
>
>
> Gambit
>
>
>
Technical Details
Message-ID:
<3eb30123@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3eb2faf3$1@newsgroups.borland.com> <3eb2fbdb$1@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-02 16:42:04 PST From: "Fernando Alvarez" <ferjat@lycos.es> Newsgroups: borland.public.cppbuilder.nativeapi References: <3eb2faf3$1@newsgroups.borland.com> <3eb2fbdb$1@newsgroups.borland.com> Subject: Re: Trying DeleteKey in the registry Date: Sat, 3 May 2003 01:37:03 +0200 Lines: 37 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: <3eb30123@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1051918627 81.203.10.123 (2 May 2003 16:37:07 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail