Re: RegEnumKeyEx Error 87
Your Last parameter on the declaration is wrong. here is the correct declaration
public Type FILETIME
dwLowDateTime as Long
dwHighDateTime as Long
End Type
Declare Function RegEnumKeyEx Lib "advapi32.dll" Alias "RegEnumKeyExA" _
(byval hKey as Long, byval dwIndex as Long, _
byval lpname as string, lpcbName as Long, _
byval lpReserved as Long, _
byval lpClass as string, _
lpcbClass as Long, _
lpftLastWriteTime as FILETIME) as Long
John G
Re: RegEnumKeyEx Error 87
Full marks - That was precisely it.
Thanks,
D.
-------------------------------------------------
Ex. Datis: Duncan Jones
Merrion Computing Ltd
http://www.merrioncomputing.com