?
Solved

HKEY constants for RegOpenKey() in VB3

Posted on 1997-06-04
1
Medium Priority
?
412 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 5

Accepted Solution

by:
y96andha earned 400 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying 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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
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…
Suggested Courses

764 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