Re: Exists something like RegRenameKey?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I agree. I've done this sort of thing and David's advice to create the new tree and copy the keys then delete the old ones is a lot safer. It also happens so quickly that you won't notice the difference between a copy/delete or rename and if anything goes wrong in the mean time you still have the original keys (or the copy) at any step.

Tom

"Pavel A." <pavel_a@xxxxxxxxxxxxxxx> wrote in message news:%23Vy2ZrF5JHA.2456@xxxxxxxxxxxxxxxxxxxxxxx
David Lowndes wrote:
is possible to rename registry key? Exists functions like RegRenameKey or
RegMoveKey ?
IIRC I don't think there is any such function - you have to copy the
branch to the new one and then delete the old one.
Wrong.
There is a RenameKey api (Kernel)
See on Win32 group (http://tinyurl.com/cmhb5g),
classic

I can't see any mention of RenameKey at that URL.

Dave


Yes, there is the native API NtRenameKey/ZwRenameKey in WinXP and Vista,
and it works.
But it is still undocumented even in Vista.
My guess is, because the rename operation causes
too many problems with virtualization of registry.
So I'd advice against using it, even if it "seems to work".
Just pretend that it does not exist.

Regards,
--pa

.



Relevant Pages

  • Re: Exists something like RegRenameKey?
    ... Boring work ... tree and copy the keys then delete the old ones is a lot safer. ... Yes, there is the native API NtRenameKey/ZwRenameKey in WinXP and Vista, ... because the rename operation causes ...
    (microsoft.public.vc.language)
  • All Installed Programs Not Displayed in the Add/Remove Programs Tool
    ... All Installed Programs Not Displayed in the Add/Remove Programs Tool. ... I've tried following the advice in ... And there are no keys with long names to rename. ...
    (microsoft.public.windowsxp.general)
  • Re: Impossible URL Scrub
    ... You probably need to edit the registry as well; check out the advice about ... I could run the history eraser ... >>> matter what registry keys or IE scrubs I use, ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Normal.dot
    ... the problem persists contact the program vendor. ... I have taken advice from this forum and found out I had ... I have taken advice from this forum and tried to rename ...
    (microsoft.public.word.application.errors)
  • Re: Studying the attention of a person in face of a webcam
    ... >> I'm creating an interface to study the attention of a person who's standing in front of a webcam, and who interactes with the gui, selecting some keys on the keyboard to follow a path that is shown in an image box in the gui. ... advice on which on of the zillions of aspects of your master thesis... ... I'm sorry but I'm creating the ideas, as I'm Matlab beginner and don'tknow hits tools, so I cannot come back with specific,as for your suggestion. ...
    (comp.soft-sys.matlab)