However the function always returns - "The parameter is incorrect." . If I
change HKEY_USERS to HKEY_CURRENT_USER the key gets created. I can not add a
new key under HKEY_USERS even when I use Regedit.exe . I am testing on a
Windows XP professional PC . Can anyone tell me what is wrong?
Thanks!
HTH
--
============
Frank Hickman
NobleSoft, Inc.
============
Replace the _nosp@m_ with @ to reply.
"Drago" <drag...@abv.bg> wrote in message
news:uAexszuw...@TK2MSFTNGP11.phx.gbl...
"Frank Hickman" <fhickman_nosp@m_noblesoft.com> wrote in message
news:d9ydnS3DIKQ...@comcast.com...
--
Frank
"Drago" <drag...@abv.bg> wrote in message
news:uXeBlKvw...@TK2MSFTNGP10.phx.gbl...
The same is for HKEY_LOCAL_MACHINE.
HKU and HKLM can only hold hives as subkeys.
"Drago" <drag...@abv.bg> wrote in message
news:uAexszuw...@TK2MSFTNGP11.phx.gbl...
"An application cannot create a key that is a direct child of HKEY_USERS or
HKEY_LOCAL_MACHINE."
"Drago" <drag...@abv.bg> wrote in message
news:uAexszuw...@TK2MSFTNGP11.phx.gbl...
Jase
"Alexander Grigoriev" <al...@earthlink.net> wrote in message
news:exdLqoyw...@TK2MSFTNGP10.phx.gbl...
There is no subkey named "Software" under HKEY_USERS. Are you maybe
confusing it with HKEY_CURRENT_USER?
--
With best wishes,
Igor Tandetnik
"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken
Why do you want to put the key there anyway? Is there a special reason why
you can't use a subkey of HKEY_LOCAL_MACHINE?
Jase
"Igor Tandetnik" <itand...@mvps.org> wrote in message
news:uESDsH%23wDH...@TK2MSFTNGP12.phx.gbl...
>There is on my system ;-) There are two keys under HKEY_USERS.
>1. .DEFAULT
>2. Software
>
>Why do you want to put the key there anyway? Is there a special reason why
>you can't use a subkey of HKEY_LOCAL_MACHINE?
>
Yes, if you want each user to have his/her own private settings. The
proper place is HKEY_CURRENT_USER. The other location, HKEY_USERS
has all the separate user information in it.
Still confused. Why can't you use HKEY_LOCAL_MACHINE for common settings,
and HKEY_CURRENT_USER for user specific stuff?
Jase
That is exactly what I was trying to say.
The reason you can't use a subkey of HKEY_LOCAL_MACHINE is
specifically to give users their own separate information. If you
want all users to share the information, then HKEY_LOCAL__MACHINE is
the place.
And HKEY_USERS is essentially just a list of the known users (one of which is going to
be mapped to HKEY_CURRENT_USER at any given time).
Only those currently logged on (at least on NT/2K/XP).