谁知道 RegistryConnect 函数的用法?

zz_guang 2001-12-31 01:56:09
DELPHI的注册表函数中有一个 RegistryConnect 函数

看介绍好像是说连接到其他计算机,读取其他计算机注册表的

有谁知道怎么用
...全文
56 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
zz_guang 2001-12-31
  • 打赏
  • 举报
回复
举个实例来看看,问题是我从来没有试成功过
Doomguard 2001-12-31
  • 打赏
  • 举报
回复
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.

5,388

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 开发及应用
社区管理员
  • VCL组件开发及应用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧