回覆列表
  • 1 # 使用者5443769950533

    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

  • 中秋節和大豐收的關聯?
  • 西施犬生活習慣?