πŸš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Trying DeleteKey in the registry

#16644
From: Fernando Alvarez
Date: Fri, 02 May 2003 23:10
17 lines
1311 bytes
Hi!

I'm trying to delete a key in the registry with DeleteKey but I donοΏ½t get to
do this job. I want to delete the key KAZAA and his value in the Run folder.

This is my code:

include <registry.hpp>

 TRegistry *registry = new TRegistry();
 registry->RootKey = HKEY_LOCAL_MACHINE;

registry->DeleteKey("\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run\\KA
ZAA");
 delete registry;

Thank you.
Technical Details
Message-ID: <3eb2faf3$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10cc67,3359b20f1ef9dc9,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-05-02 16:17:52 PST
From: "Fernando Alvarez" <ferjat@lycos.es>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Trying DeleteKey in the registry
Date: Sat, 3 May 2003 01:10:38 +0200
Lines: 19
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: <3eb2faf3$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1051917043 81.203.10.123 (2 May 2003 16:10:43 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail