?
Solved

RegQueryKey (3)

Posted on 1997-05-07
3
Medium Priority
?
769 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Accepted Solution

by:
whitewolf042897 earned 200 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
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 video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
Suggested Courses

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