Solved

HKEY constants for RegOpenKey() in VB3

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
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…

756 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