注册 登录
编程论坛 新人交流区

注册表二进制数据如何设置?目标(显示)结果:QiuOldErrorValue REG_BINARY 00 00

lijinming 发布于 2007-10-22 11:27, 756 次点击

Option Explicit
'以下代码是有问题的。帮忙解释,该数据应如何设置?
RegCreateKey:RegOpenKey:RegSetValueEx :RegColseKey
'假定:以上已定义!
Const mREGKEYCurr = "SOFTWARE\Microsoft\Windows\MMion"
'假定:"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\MMion"键值已存在

Const HKEY_LOCAL_MACHINE = &H80000002
Const REG_BINARY As Long = 3 '二进制
Dim hKey As Long

Private Sub Com_Error_Click()
Dim mRegStr As String
Dim mRegLong As Long
mRegLong=RegOpenKey (HKEY_LOCAL_MACHINE, mREGKEYCurr, hKey)
If mRegLong = 0 Then
mRegStr = "00 00 00 00 00 00 00 00 03 00 00 00 00 00 5B E0 00 00 5C E0 00 00 00 00"
RegCreateKey HKEY_LOCAL_MACHINE, mREGKEYCurr & "\minmingKey", hKey
RegSetValueEx hKey, "QiuOldErrorValue", "0", REG_BINARY, mRegStr, 4
End If
RegColseKey hKey
End Sub

2 回复
#2
lijinming2007-10-23 16:56
回复:(lijinming)注册表二进制数据如何设置?目标(显...
我知道:用数组,就是不告诉你们!
#3
lijinming2007-10-23 16:58
回复:(lijinming)注册表二进制数据如何设置?目标(显...
脱新?是
1