vin
September 26th, 2001, 09:20 AM
Hi,
I need to export from registry to text file a whole section programmatically. Can anyone help ?
Valery Iskarov Nikolov
Software Dynamics
MKSa
September 26th, 2001, 09:29 AM
Start by declaring:private 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.
vin
September 26th, 2001, 09:35 AM
Thanks I think this would do it.
Valery Iskarov Nikolov
Software Dynamics