LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to delete a registry subkey in Labwindows?

I can write/read a subkey's value but don't know how to delete a subkey.
 
 
Thanks!
Jacky
0 Kudos
Message 1 of 2
(2,927 Views)

NI has not exposed in the Programmer's toolbox the functions for deleting keys or values in the registruy. They are indeed included in Windows APIs, to which toolbox functions ultimately rely on, as you can see looking at RegXXX functions in toolbox.c

The functions you are to use are RegDeleteKey and RegDeleteValue that are described in Windows SDK accessible from CVI Help menu.

A general warning is that manipulating the registry can turn the machine into unstable state: this is particularly true when deleting values and keys.



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 2
(2,919 Views)