Results 1 to 2 of 2

Thread: RegConnectRegistry

  1. #1

    Thread Starter
    Hyperactive Member razzaj's Avatar
    Join Date
    Oct 1999
    Location
    jounieh
    Posts
    261

    RegConnectRegistry

    I looked for this function and found the Difinition in the API
    Text Viewer.

    I tried to use it and it is not working.

    Any help ?

    Code:
    Public Declare Function RegConnectRegistry Lib "advapi32.dll" Alias "RegConnectRegistryA" (ByVal lpMachineName As String, ByVal hKey As Long, phkResult As Long) As Long
    - regards -
    - razzaj -

  2. #2
    Frenzied Member
    Join Date
    Aug 2001
    Posts
    1,075
    From MSDN


    Windows 95/98/Me: To use RegConnectRegistry, you must install the Microsoft Remote Registry service. If you don't do this, calls to RegConnectRegistry return ERROR_DLL_INIT_FAILED. Perform the following steps to install the Microsoft Remote Registry service.

    To install the Microsoft Remote Registry service

    In the Network option in Control Panel, click Add.
    In the Select Network Component Type dialog box, double-click Service.
    In the Select Network Service dialog box, click the Have Disk button.
    In the Install From Disk dialog box, type the path to the ADMIN\NETTOOLS\REMOTREG directory on the Windows 95 compact disc, and then click OK.
    In the Install From Disk dialog box, click OK.
    In the Select Network Service dialog box, click Microsoft Remote Registry, and then click OK.
    If you are prompted to specify the location of additional files, specify the path to the files on a shared network directory or on the compact disc.

    Requirements
    Windows NT/2000 or later: Requires Windows NT 3.1 or later.
    Windows 95/98/Me: Requires Windows 95 or later.
    Header: Declared in Winreg.h; include Windows.h.
    Library: Use Advapi32.lib.
    Unicode: Implemented as Unicode and ANSI versions on Windows NT/2000.
    Greg
    Free VB Add-In - The Reference Librarian
    Click Here for screen shot and download link.

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