Solved

RegQueryKey (3)

Posted on 1997-05-07
3
748 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

Independent Software Vendors: 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

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…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
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 user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

726 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