Solved

Registry : HKEY_DYN_DATA

Posted on 1998-02-27
4
744 Views
Last Modified: 2012-06-27
Hi,

I'm trying to create keys and values inside the Win95 registry using VB5. All is okay but I have problems adding keys inside HKEY_DYN_DATA. I can't find what is the Long value that I should assign to HKEY_DYN_DATA (eg Const HKEY_CURRENT_CONFIG = &H80000006). Can anyone please tell me the value for HKEY_DYN_DATA ?? And just to make sure, that this predefined key can also be created in the same way as the other predefined keys using the same APIs right ?

Thanks for helping!
0
Comment
Question by:ftp1234
  • 2
  • 2
4 Comments
 
LVL 4

Expert Comment

by:yowkee
Comment Utility
Const HKEY_DYN_DATA = &H80000006
The value of HKEY_CURRENT_CONFIG is &H80000005.
Do you mean that you want to create a key(predefined key) named HKEY_DYN_DATA (or other predefined key) with value &H80000006? Since it's the predefined key existed in register root structure, you can't create it.


0
 
LVL 8

Expert Comment

by:mrmick
Comment Utility
Yowkee is correct.  You can't create new keys at the root of the registry.  You can create keys under any of the predefined keys.  Constant values for all predefined keys are:

Const HKEY_CLASSES_ROOT = &H80000000
Const HKEY_CURRENT_USER = &H80000001
Const HKEY_LOCAL_MACHINE = &H80000002
Const HKEY_USERS = &H80000003
Const HKEY_PERFORMANCE_DATA = &H80000004
Const HKEY_CURRENT_CONFIG = &H80000005
Const HKEY_DYN_DATA = &H80000006

0
 
LVL 4

Accepted Solution

by:
yowkee earned 100 total points
Comment Utility
    Const HKEY_DYN_DATA = &H80000006
     The value of HKEY_CURRENT_CONFIG is &H80000005.
     Do you mean that you want to create a key(predefined key) named HKEY_DYN_DATA (or other predefined key) with value &H80000006? Since it's the predefined key existed in register root structure, you can't create it.

P.S. since mrmick also said I am correct :), so I just post comment as answer :P. hope mrmick won't mind.

0
 
LVL 8

Expert Comment

by:mrmick
Comment Utility
As far as I'm concerned yowkee, you answered this question.  I don't mind at all and I've been wondering when you'd come back!

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

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

743 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

10 Experts available now in Live!

Get 1:1 Help Now