Solved

Registry : HKEY_DYN_DATA

Posted on 1998-02-27
4
777 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
[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
  • 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 100 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

[Live Webinar] The Cloud Skills Gap

As Cloud technologies come of age, business leaders grapple with the impact it has on their team's skills and the gap associated with the use of a cloud platform.

Join experts from 451 Research and Concerto Cloud Services on July 27th where we will examine fact and fiction.

Question has a verified solution.

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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month10 days, 11 hours left to enroll

628 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