Solved

Registry Access with VB6

Posted on 2004-04-16
3
1,116 Views
Last Modified: 2012-05-04
VB6 has a GetAllSettings function that returns all values of a key created with SaveSettings. When the number of values is large, this function can save the app from opening the key repeatedly in order to read each value.

However, SaveSettings only can put information in HKEY_CURRENT_USER, which makes it accessible only by the user who put it there (I need access to this info for all users.)

Secondly, there is no Win32 API that returns all values of a key; one can get all value names, but then the key needs to be opened and closed each time a value is read.

My question is, what would be an elegant way in VB6 to read all values of a key in one shot?
Can SaveSettings be made to write to HKEY_LOCAL_MACHINE, for instance?
0
Comment
Question by:campinas
  • 2
3 Comments
 
LVL 18

Accepted Solution

by:
Sethi earned 500 total points
ID: 10847332
0
 

Author Comment

by:campinas
ID: 10851584
thanks!
0
 
LVL 18

Expert Comment

by:Sethi
ID: 10852126
:-) Anytime
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

740 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