Help for enumerating Registry-Values 
Author Message
 Help for enumerating Registry-Values

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.*-*-*.com/
Share what you know. Learn what you don't.



Mon, 03 Dec 2001 03:00:00 GMT  
 Help for enumerating Registry-Values
q178755 http://support.microsoft.com/support/kb/articles/q178/7/55.asp
HOWTO: Enumerate the Values of a Registry Key

Henri Leboeuf
Web page: http://www.generation.net/~hleboeuf/index.htm

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.



Mon, 03 Dec 2001 03:00:00 GMT  
 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.



Mon, 03 Dec 2001 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Enumerating registry values

2. Enumerating registry values

3. Enumerate Registry Values

4. Enumerating registry values in NT4

5. Enumerating value names in registry

6. Enumerating registry values in NT4

7. Problem While Enumerating Registry Values

8. Enumerating registry values

9. Enumerating registry values in NT4

10. enumerate registry entries using win32api registry functions

11. Problem enumerating registry keys on NT

12. enumerating a registry key into a listview - how?

 

 
Powered by phpBB® Forum Software