Article View: borland.public.cppbuilder.nativeapi
Article #1899copy and rename a registry key
From: han
Date: Thu, 31 May 2007 14:33
Date: Thu, 31 May 2007 14:33
4 lines
1475 bytes
1475 bytes
I am trying to copy a registry key, rename it and then put back into the registry. For example I have a key "Software\\XXXCompany\\Settings\\ViewForms\\16BitColorMode" in my registry, of course below that there are some keys. I would like to copy this key and all its subkey, and rename it to "Software\\XXXCompany\\Settings\\ViewForms\\32BitColorMode", the subkey is the same as before. I am able to use regsavekey to save the key to a hive file (see my previous post). But how can I make change to the key and then reload to the registry? I looked at RegReplaceKey. Lookes like it can not do what I would like to do. Any help? Thanks a lot. han
Technical Details
Message-ID:
<465edca3$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,b1ad557c75f90650,start X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "han" <hanzhangusa@yahoo.com> Sender: "han" <hanzhangusa@yahoo.com> Reply-To: "han" <hanzhangusa@yahoo.com> Subject: copy and rename a registry key Newsgroups: borland.public.cppbuilder.nativeapi X-User-Info: 64.143.221.52 NNTP-Posting-Host: 207.105.83.66 Message-ID: <465edca3$1@newsgroups.borland.com> Date: 31 May 2007 07:33:07 -0700 X-Trace: newsgroups.borland.com 1180621987 207.105.83.66 (31 May 2007 07:33:07 -0700) Lines: 4 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!club-internet.fr!feedme-small.clubint.net!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail