🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #7781

Listing Keys under a registry HIVE

#7781
From: Maurice Anderson
Date: Sat, 18 Dec 2004 20:15
12 lines
1511 bytes
Does anyone know how to open a registry hive as a key?  I know I can open a
key with RegOpenKeyEx, but RegOpenKeyEx takes the HIVE and KEY to open.  For
example if I wanted to open HKEY_LOCAL_MACHINE\Software I would have to use
both HKEY_LOCAL_MACHINE and Software as:

    RegOpenKeyEx(HKEY_LOCAL_MACHINE, Software ...

Then from there I could even enumerate the subkeys under Software.

But my question is, how do I open HKEY_LOCAL_MACHINE so I could enumerate
the keys under it?  I want to be able to list out the keys under
HKEY_LOCAL_MACHINE (HARDWARE, SAM, SECURITY, SOFTWARE, SYSTEM).
Technical Details
Message-ID: <41c48e73$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.wiretrip.org!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,15e78cde96ad308d,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Maurice Anderson" <mauriceanderson@hotmail.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Listing Keys under a registry HIVE
Date: Sat, 18 Dec 2004 12:15:59 -0800
Lines: 14
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 64.30.203.223
Message-ID: <41c48e73$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1103400563 64.30.203.223 (18 Dec 2004 12:09:23 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.wiretrip.org!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail