|
[moderator lonkero moved to beta from suggestions due to lack of suggestion in topic]
I was piloting version 4.21 on a WIN2K Pro test machine and found that the "USE */ DELETE" command forces a @ERROR 87.
I am currently using version 4.02 in production and the command works fine.
I found a MSKB article 173009 which states that the RegEnumValue() API could cause this if referenced improperly.
see below...
The declaration of RegEnumValue as it currently exists in the API Text Viewer is: Declare Function RegEnumValue Lib "advapi32.dll" Alias "RegEnumValueA" _ (ByVal hKey As Long, ByVal dwIndex As Long, ByVal lpValueName As _ String, lpcbValueName As Long, lpReserved As Long, lpType As Long, _ lpData As Any, lpcbData As Long) As Long
The fifth parameter, lpReserved, should be defined as ByVal. The correct declaration is: Declare Function RegEnumValue Lib "advapi32.dll" Alias "RegEnumValueA" _ (ByVal hKey As Long, ByVal dwIndex As Long, ByVal lpValueName As _ String, lpcbValueName As Long, ByVal lpReserved As Long, lpType As _ Long, lpData As Any, lpcbData As Long) As Long
Anyone else experiencing this issue?
Tom [ 08. August 2003, 00:46: Message edited by: Lonkero ]
|