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 RegCloseKey.
LONG RegConnectRegistry( LPTSTR lpMachineName, HKEY hKey, PHKEY phkResult );
lpMachineName
\\computername
If lpMachineName is NULL, the local Windows host computer name is used.
hKey
HKEY_LOCAL_MACHINE HKEY_USERS HKEY_PERFORMANCE_DATA
You cannot specify the HKEY_CLASSES_ROOT or HKEY_CURRENT_USER value for this parameter.
phkResult
You cannot specify the value HKEY_CLASSES_ROOT or HKEY_CURRENT_USER for hKey.
ERROR_SUCCESS
Versions | Defined in | Include | Link to |
---|---|---|---|
INtime 3.0 | intime/rt/include/iwin32.h | iwin32.h iwin32rt.h |
rt.lib |
Note
This function operates in the real-time portion of your application.
RegCloseKey, iwin32 API, iwin32 Overview