🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.delphi.documentation
Article #978

Re: How to determine a list of Keys and Values under a given HKEY in Registry?

#978
From: Danny Heijl
Date: Fri, 23 Apr 2004 20:13
41 lines
1886 bytes
I think you may have to use OpenKey first.

Danny
---

"Vitaliy Fursov" <vfursov _at_ canada _dot_ com> schreef in bericht
news:4086010b@newsgroups.borland.com...
> Dear Delphi Geeks,
>
> Please help me with a simple problem.
>
> I want to determine a list of registry keys and values under a given HKEY.
>
> I do the following:
>
> var
>     KeyNames : TStringList;
>     ValueNames : TStringList;
> begin
>     KeyNames := TStringList.Create;
>     ValueNames := TStringList.Create;
>     with TRegistry.Create do begin
>         RootKey := HKEY_CLASSES_ROOT;
>         GetKeyNames(KeyNames);
>         GetValueNames(ValueNames);
>     ...
>
> At this moment I assume to have some items in KeyNames and ValueNames,
> however both lists are empty.
>
> I appreciate your help.
>
> Sincerely,
>
> Vitaliy Fursov
>
>
>
>
>
>
Technical Details
Message-ID: <408978d9@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4086010b@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10a202,b98f513a5e9cd758
X-Google-Thread: f4be5,b98f513a5e9cd758
X-Google-Attributes: gid10a202,gidf4be5,public
X-Google-ArrivalTime: 2004-04-23 13:40:06 PST
From: "Danny Heijl" <danny.heijl_@_pandora.be>
Newsgroups: borland.public.delphi.documentation,borland.public.delphi.teamsource
References: <4086010b@newsgroups.borland.com>
Subject: Re: How to determine a list of Keys and Values under a given HKEY in Registry?
Date: Fri, 23 Apr 2004 22:13:14 +0200
Lines: 43
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 213.118.54.36
Message-ID: <408978d9@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1082751193 213.118.54.36 (23 Apr 2004 13:13:13 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail