views:

398

answers:

2

How to rename key in registry using C++?

I want rename key "Myapp\Version1" to "Myapp\Version2".

I don't see any function in MSDN about renaming keys in registry.

+2  A: 

If your app requires Vista or newer versions of Windows, you can use RegCopyTree() followed by RegDeleteTree().

Ferruccio
Thanks Ferruccio, I will implement that :)
Jasmin25
+3  A: 

There is no function to rename on older versions of windows, you need to copy/delete on your own AFAIK.

Anders
Thank you anders :)
Jasmin25