Solved

Registry Manipulation

Posted on 2001-06-29
6
396 Views
Last Modified: 2012-05-04
Hello

I'd like to copy a registry key. I tried to use the movekey command from Borlant C++ Builder but I can't copy from a root key to another.

ie I'd like to copy a key from HKEY_LOCAL_MACHINE to HKEY_CURRENT_USER

How could I do ????????????
Help me please, thanks

Waxman
0
Comment
Question by:waxman2
6 Comments
 
LVL 6

Expert Comment

by:MichaelS
Comment Utility
Do you think that your question is 50 times easie than an easy one? On that site the easy question worth 50 points
0
 
LVL 1

Expert Comment

by:ccaprar
Comment Utility
What about giving more points fore the question ......
0
 
LVL 1

Expert Comment

by:ccaprar
Comment Utility
What about giving more points for the question ......
0
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 14

Accepted Solution

by:
AlexVirochovsky earned 50 total points
Comment Utility
Seems me, that movekey works only in one Root Directory.
You need:
1. Get registry key value.
2. Delete (if you want) from old place
3. Add in new place(after changing RootKey property)
See more details in TRegistry component Help.
0
 

Author Comment

by:waxman2
Comment Utility
--> Alex

You're right, it is the method I used. But there is over 60 values in this key
So, I can't do it one after one

Actually, I decided to use
 for (n=1;n<='number of value in the key';n++)

it's a bit easier.......
0
 
LVL 14

Expert Comment

by:AlexVirochovsky
Comment Utility
>>it's a bit easier
Well, you are right, and I don't see easier
method. Of course, you can use direct Windows Api
for work with registry, but it is more complex.
Now, is I reply tou your Q?
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

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…
What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

762 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now