Solved

RegQueryKey (3)

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

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
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.

690 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