🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to rename a registry key

#16065
From: Remy Lebeau (TeamB)
Date: Mon, 02 Jun 2003 16:34
14 lines
1527 bytes
"HuangC" <huangc@motic.com.cn> wrote in message
news:3edaa82f$2@newsgroups.borland.com...

> Does anyone can tell me how to rename a registry key.

It is not possible to do so directly, there is no API functionaty for that.
You will have to just create a new key with the desired name, recursively
copy all of the old values and subkeys over to it, and then delete the
original.  That is the exact same thing that even Microsoft's own Registry
Editor does.


Gambit
Technical Details
Message-ID: <3edb7be4$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!216.166.71.118.MISMATCH!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <3edaa82f$2@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,f6bda85f95cb4fe7
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-06-02 09:35:57 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3edaa82f$2@newsgroups.borland.com>
Subject: Re: How to rename a registry key
Date: Mon, 2 Jun 2003 09:34:32 -0700
Lines: 16
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: 207.175.226.26
Message-ID: <3edb7be4$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1054571492 207.175.226.26 (2 Jun 2003 09:31:32 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!216.166.71.118.MISMATCH!small1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail