RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TRegistry.RegistryConnect Method

Establishes a connection to a registry on another computer.

Pascal
function RegistryConnect(const UNCName: string): Boolean;
C++
__fastcall Boolean RegistryConnect(const AnsiString UNCName);

Call RegistryConnect to establish a connection to a registry on another computer running Windows 95 or Windows NT. UNCName is the name of the remote computer, and must take the following form:

\\computername

where computername is the name of the remote computer. If UNCName is nil (Delphi) or NULL (C++), 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. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!