Solved

HKEY constants for RegOpenKey() in VB3

Posted on 1997-06-04
1
365 Views
Last Modified: 2006-11-17
What are the HKEY constants for the first parameter of RegOpenKey?  As far as I can tell, Microsoft graciously left them out of the VB3 Pro API help files and the CONSTANTS.TXT file.
Also, if the key value is known to only contain 1 entry (the default), will the Win3.1 registry API calls work OK in 95? If not, what are the caveats.

Thanks,
David@synesiscorp.com
0
Comment
Question by:synesis
1 Comment
 
LVL 5

Accepted Solution

by:
y96andha earned 100 total points
ID: 1426844
The only constant defined for Win3.1 registry calls is HKEY_CLASSES_ROOT, whose value is 1.

If the key value contains only one entry, and this entry is the default entry, then you'll be able to read or write the value with no trouble.

0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
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…
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…

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now