| 发表于:2007-08-18 22:31:00 楼主 |
这是我的代码: public declare function regopenkey lib "advapi32.dll " alias "regopenkeya " (byval hkey as long, byval lpsubkey as string, phkresult as long) as long public declare function regcreatekey lib "advapi32.dll " _ alias "regcreatekeya " (byval hkey as long, _ byval lpsubkey as string, _ phkresult as long) as long public const hkey_local_machine = &h80000002 public sub result() dim result as long dim hkeyid as long result = regopenkey(hkey_local_machine, _ "software/microsoft/windows/currentversion/run ", hkeyid) end sub 在返回值result =2,为什么啊? 我把写成:result = regcreatekey(hkey_local_machine, _ "software/microsoft/windows/currentversion/run ", hkeyid) 返回值result =87,为什么我得不到正确的值0,哪位大哥给我回答一下,感激不尽 |
|
|
|
|