Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Registry : HKEY_DYN_DATA

Posted on 1998-02-27
4
Medium Priority
?
788 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
ID: 1458141
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
ID: 1458142
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 200 total points
ID: 1458143
    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
ID: 1458144
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
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 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…

916 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