function RegistryConnect(const UNCName: String): 
Boolean;
参数UNCName是远程计算机名,格式:\\ComputerName
where computername is the name of the remote computer. If UNCName is nil, the local machine name is used.
Note: Before calling RegistryConnect, an application must set the RootKey property for its registry object to HKEY_USERS or HKEY_LOCAL_MACHINE.If connection is successful, RegistryConnect sets the RootKey property to the root key of the remote computer and returns True. If unsuccessful, RegistryConnect returns False, and RootKey remains unchanged.