[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 276
  • Last Modified:

Delete value found by regQueryValueEx

Hi

I want to delete value from registry with regDeleteKey.

That value is find by RegQueryValueEx.

EX

retCode4 = RegOpenKeyEx(HKEY_CURRENT_USER,
                                          "SOFTWARE\\mice",
                                          0,
                                          KEY_ALL_ACCESS,
                                          &hKey4);

RegDeleteKey (HKEY_LOCAL_MACHINE, "Software\\mice");

How do I do ?
Thanks in advance.
0
puce020497
Asked:
puce020497
1 Solution
 
sperlingCommented:
Enumerate and delete all subkeys first.
0

Featured Post

[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now