Solved

HKEY constants for RegOpenKey() in VB3

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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

920 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

11 Experts available now in Live!

Get 1:1 Help Now