Results 1 to 3 of 3

Thread: Remote Registry

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Location
    Somerset UK
    Posts
    7

    Unhappy

    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
    :-)
    To err is humman, but to foul up completly requires a computer!!

  2. #2
    Fanatic Member Dim's Avatar
    Join Date
    Jul 2000
    Posts
    620
    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
    Dim

  3. #3
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    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!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width