Solved

Registry : HKEY_DYN_DATA

Posted on 1998-02-27
4
766 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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 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…
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…

749 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