Private Declare Function RegLoadKey Lib "advapi32.dll" Alias "RegLoadKeyA" (ByVal hKey As Long, ByVal lpSubKey As String, ByVal lpFile As String) As Long
Private Const HKEY_LOCAL_MACHINE = &H80000002
Private Sub Form_Load()
MsgBox RegLoadKey(HKEY_LOCAL_MACHINE, "2", "H:\DEFAULT")
end sub
这是代码