|
-
September 26th, 2001, 09:20 AM
#1
Read from Registry
Hi,
I need to export from registry to text file a whole section programmatically. Can anyone help ?
Valery Iskarov Nikolov
Software Dynamics
-
September 26th, 2001, 09:29 AM
#2
Re: Read from Registry
Start by declaring rivate Declare Function RegCloseKey Lib "advapi32.dll" (byval hKey as Long) as Long
private Declare Function RegOpenKey Lib "advapi32.dll" Alias "RegOpenKeyA" (byval hKey as Long, byval lpSubKey as string, phkResult as Long) as Long
private 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 Any) as Long
private 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 Byte, lpcbData as Long) as Long
Then iterate by using a combination of RegEnumKeyEx and RegEnumValue.
-
September 26th, 2001, 09:35 AM
#3
Re: Read from Registry
Thanks I think this would do it.
Valery Iskarov Nikolov
Software Dynamics
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|