CodeItBetter Programming Another VB Programming Blog

How to Delete an Entire Key or Key Structure from Registry

Posted on January 4, 2009
1
2
3
4
5
6
7
8
'Registry - How to Delete an Entire Key or Key Structure from Registry
Private Declare Function RegDeleteKey Lib "advapi32.dll" Alias "RegDeleteKeyA" _
    (ByVal hKey As Long, ByVal lpSubKey As String) As Long
Private Const HKEY_LOCAL_MACHINE = &H80000002
 
Private Sub Command1_Click()
    Call RegDeleteKey(HKEY_LOCAL_MACHINE, "Software\TestKey\")
End Sub
Filed under: Registry Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


 

No trackbacks yet.