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
Solved

Registry : HKEY_DYN_DATA

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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 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…
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…

808 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