Solved

HKEY constants for RegOpenKey() in VB3

Posted on 1997-06-04
1
382 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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
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…

831 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