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