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 |