SHDeleteKey(API)
宣告:
Private Declare Function SHDeleteKey Lib "shlwapi.dll" Alias "SHDeleteKeyA" (ByVal hkey As Long, ByVal pszSubKey As String) As Long
引數說明:
hKey:登錄檔控制代碼(如HKLM、HKCU)
pszSubKey:具體的項(如Software\HSMS)
例項:(在視窗中新增command1)
Const REG_DWORD = 4
Const HKEY_CURRENT_USER = &H80000001
Private Sub Command1_Click()
Call SHDeleteKey (HKEY_CURRENT_USER, "Software\HSMS")
End Sub
SHDeleteKey(API)
宣告:
Private Declare Function SHDeleteKey Lib "shlwapi.dll" Alias "SHDeleteKeyA" (ByVal hkey As Long, ByVal pszSubKey As String) As Long
引數說明:
hKey:登錄檔控制代碼(如HKLM、HKCU)
pszSubKey:具體的項(如Software\HSMS)
例項:(在視窗中新增command1)
Private Declare Function SHDeleteKey Lib "shlwapi.dll" Alias "SHDeleteKeyA" (ByVal hkey As Long, ByVal pszSubKey As String) As Long
Const REG_DWORD = 4
Const HKEY_CURRENT_USER = &H80000001
Private Sub Command1_Click()
Call SHDeleteKey (HKEY_CURRENT_USER, "Software\HSMS")
End Sub