Solved

RegQueryKey (3)

Posted on 1997-05-07
3
712 Views
Last Modified: 2012-06-27
Hello,

I wrote already for the same question but I never receipt response.

How to delete a key in the registry found by RegQueryValue.

Ex :  in the key HKEY_CURRENT_USER\\Software\\xyz , the value of reg (by example ) is 32568
I want delete the key HKEY\\LOCAL_MACHINE\\Software\\32568

How do I do ?
0
Comment
Question by:puce020497
  • 2
3 Comments
 

Accepted Solution

by:
whitewolf042897 earned 100 total points
ID: 1163323
From the information you posted, what you want to delete is a VALUE, but you are treating it like a key.  IE. the key
   HKEY_CURRENT_USER\\Software\\xyz
has a VALUE of
   32568

If you want to delete the key, use RegDeleteKey.
If you want to remove the value, assign 0 to the key using RegSetValueEx

If you want a real code sample, let me know.
0
 

Author Comment

by:puce020497
ID: 1163324
but I'm want delete key that is value !!!!!Thanks. 
0
 

Author Comment

by:puce020497
ID: 1163325
but I'm want delete key that is value !!!!!Thanks.The value is the Key !!!!
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

747 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

9 Experts available now in Live!

Get 1:1 Help Now