Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Registry - How to rename key in registry using C++?

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.

like image 376
Jasmin25 Avatar asked Oct 04 '09 12:10

Jasmin25


1 Answers

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

like image 193
Ferruccio Avatar answered Sep 22 '22 16:09

Ferruccio