
Help for enumerating Registry-Values
J?rg ,
M$ botched the declare in the earlier Win32Api.txt (vb4/vb5..)
http://support.microsoft.com/support/kb/articles/Q173/0/09.asp
It is fine in VB6. Note the function also appears incorrectly in Appleman.
Check on the Desaware website www.desaware.com for a posted erratum sheet
-CORRECTED DECLARE -
[Private|Public] 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
BTW, I posted an example over in microsoft.public.vb.winapi for both
RegEnumKeyEx and RegEnumValue just the other day.
Check www.deja.com you should find it in about 2 seconds.
Neila
Quote:
>Hello,
>I'm trying to enumerate Registry-Values from a special Registry-Key
>with the api-call RegEnumValue.
>It does not work (Return-Code 87) !
>Has somebody a Samplecode for using this function correctly ???
>Greetings from cologne
>- J?rg -
>Sent via Deja.com http://www.deja.com/
>Share what you know. Learn what you don't.