Solved

Registry Access with VB6

Posted on 2004-04-16
3
1,114 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

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 …
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.
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…

825 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