Solved

Registry Access with VB6

Posted on 2004-04-16
3
1,117 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

752 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