[Delphi (Object Pascal)] Delphi 获取注册表指定键的子键列表 →→→→→进入此内容的聊天室

来自 , 2020-12-08, 写在 Delphi (Object Pascal), 查看 173 次.
URL http://www.code666.cn/view/7c250678
  1. procedure RegKeyList(const ARootKey: Windows.HKEY; const ASubKey: string;
  2.   const AKeyList: Classes.TStrings);
  3. begin
  4.   with Registry.TRegistry.Create do
  5.     try
  6.       RootKey := ARootKey;
  7.       if OpenKeyReadOnly(ASubKey) then
  8.         GetKeyNames(AKeyList)
  9.       else
  10.         AKeyList.Clear;
  11.     finally
  12.       Free;
  13.     end;
  14. end;
  15. //delphi/2293

回复 "Delphi 获取注册表指定键的子键列表"

这儿你可以回复上面这条便签

captcha