?
Solved

Windows NT registry

Posted on 1999-11-04
11
Medium Priority
?
148 Views
Last Modified: 2010-05-02
I am able to read and write to the registry using api but how do i retrieve the entire windows registry structure so i can load it into a tree view,this is for remote administration through my own application..so far ive solved most of my problems such as getting screen shots an sending them via Udp but this registry stuff gets very confusing...
thanks in advance
0
Comment
Question by:crazyman
  • 6
  • 3
  • 2
11 Comments
 
LVL 13

Author Comment

by:crazyman
ID: 2183062
Basically i need to know how to get a list of sub keys from the main key then i can just loop through.
0
 
LVL 10

Expert Comment

by:caraf_g
ID: 2183068
You'll need some decent functionality to interact with the registry. I've got an example of a class module that lets you interact with the registry. (Thanks to waty)

 http://homepage.eircom.net/~carafa/VBSamples/VBAll/shellexecute.zip

I would suggest you write a recursive function to fill the treeview. You give it a registry key and let it enumerate the subkeys. Then you can use each concatenation of original key & "\" & subkey to feed into the function itself to do the branches of the tree.

0
 
LVL 10

Expert Comment

by:caraf_g
ID: 2183070
Basically i need to know how to get a list of sub keys from the main key then i can just loop through.

Yep, my class module provides just that!
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
LVL 10

Expert Comment

by:caraf_g
ID: 2183072
sorry - waty's class module ;-)
0
 
LVL 10

Expert Comment

by:caraf_g
ID: 2183074
Look for the Enumerate* functions. They return arrays, that you can loop through.

Hope this helps! Good luck....

Pino
0
 
LVL 14

Expert Comment

by:waty
ID: 2183091
:)
caraf_g, this class has been taken from Steve McMahon :)
0
 
LVL 13

Author Comment

by:crazyman
ID: 2183096
Wow man ur fast thanks a lot.!!!!!
0
 
LVL 14

Expert Comment

by:waty
ID: 2183099
0
 
LVL 10

Expert Comment

by:caraf_g
ID: 2183140
waty, do you mind if I lock this question then?

Good man Steve McMahon. Sounds Irish?
0
 
LVL 14

Expert Comment

by:waty
ID: 2183154
Sure, take it, you answered, so you've find the right answer :)
Take it cata_g :)
0
 
LVL 10

Accepted Solution

by:
caraf_g earned 450 total points
ID: 2183157
Thanks.
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Suggested Courses

601 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question