Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Renaming a key in the Registry

Posted on 2000-04-11
2
Medium Priority
?
556 Views
Last Modified: 2012-06-27
How do i rename a key in the registry
(the key has subfolders)

ps: small example please...
0
Comment
Question by:nirkr
2 Comments
 
LVL 4

Expert Comment

by:abancroft
ID: 2703950
1. Use RegCreateKeyEx() to create the destination key.
2. Use RegOpenKeyEx() to open the source key.
3. Use SHCopyKey() to copy the key
4. Use SHDeleteKey() to delete the source key.
0
 
LVL 32

Accepted Solution

by:
jhance earned 300 total points
ID: 2704502
This article outlines the entire process and gives example code:


http://support.microsoft.com/support/kb/articles/Q175/3/29.ASP
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question