-
I need to be able to read the registry of a win95 machine from another pc, using pier to pier networking. Tried using the RegConnectRegistry api call but with no luck (possibly because I am using it wrongly!). Please could somebody help me with this problem.
Cheers
:-)
-
Three things that i can suggest you do:
1) The registry is stored in two files...system.dat and user.dat What you could do is download those two files and try and sort thru those files...but i wouldn't recomend it.
2) You could sendkeys to export the remote registry and then download it and import it.
3) Use this example to help you with the API's.
3.5) Search on PlanetSourceCode.Com for more examples.
Gl,
D!m
-
What key hives are you trying to access?
Code:
Public Declare Function RegConnectRegistry _
Lib "advapi32.dll" Alias "RegConnectRegistryA" ( _
ByVal lpMachineName As String, _
ByVal hKey As Long, _
phkResult As Long) As Long
The first argument is the computername using UNC syntax.
\\ComputerName
The second argument is the handle to the key you want to access. For Windows 95/98 you can't access HKEY_CLASSES_ROOT or HKEY_CURRENT_USER.
The third argument is the handle the function returns. You use this handle with the other registry functions.
Good luck!