Eso puede ser debido a que usando la función RegistryConnect solo se puede acceder a las claves del registro HKEY_USERS o HKEY_LOCAL_MACHINE y tu estas intentando acceder a la clave HKEY_CURRENT_USER
EDITO:
Aunque la ayuda de delphi pone que que solo se pueden usar esas dos:
Cita:
|
Empezado por Ayuda de Delphi
Note:
Before calling RegistryConnect, an application must set the RootKey property for its registry object to HKEY_USERS or HKEY_LOCAL_MACHINE.
|
La ayuda de microsoft con respecto a la API RegConnectRegistry dice que si se puede usar la clave HKEY_CURRENT_USER, aunque también dice lo siguiente:
Cita:
|
Empezado por Ayuda de microsoft
When accessing a remote computer, the HKEY_CURRENT_USER key is not guaranteed to be that of the interactive user. Most likely, this will be HKEY_USER\.Default.
|
Así que como poco el uso de la clave HKEY_CURRENT_USER en remoto es problemático.