[Delphi (Object Pascal)] Delphi 获得注册表键值列表 →→→→→进入此内容的聊天室

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

回复 "Delphi 获得注册表键值列表"

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

captcha