Establishes a connection to a predefined registry handle on another computer.
When you no longer need a handle returned by this call, you should close it by calling RtRegCloseKey.
LONG RtRegConnectRegistry( LPTSTR lpMachineName, // address of name of remote computer HKEY hKey, // predefined registry handle PHKEY phkResult // address of buffer for remote registry handle );
lpMachineName
\\computername
lpMachineName
is NULL, the local Windows host computer name is used.
hKey
phkResult
ERROR_SUCCESS
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 | intime/rt/include/rtbase.h | rt.h | rt.lib |
Registry system calls, RtRegCloseKey