At 12:14 AM 3/26/00 +0100, you wrote:
>Call ADVAPI32.208: RegCreateKeyExA(80000002,41746ba4 
>"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall",00000000,00000000,00000000,00000001,00000000,4186fb9c,4186fb94)
> ret=4174692b fs=02cf
>oh, we just created a key with access == KEY_QUERY_VALUE.

<snip>

>trace:reg:RegCreateKeyExA (0xe0,"multiDesk 
>v2.1b_is1",0,(null),0,2,(nil),0x4186fb98,0x4186fb94)
>create key
>trace:ntdll:RtlNtStatusToDosError (c0000022);
>Ret  ADVAPI32.208: RegCreateKeyExA() retval=00000005 ret=417469c9 fs=02cf
>                                            ^^^^^^^^ access denied
>This is because we try to create a key within the key 0xe0, which has
>KEY_QUERY_VALUE access only.

Since Juergen is busy, I tried it myself on Nt4; it works fine. I can't say if it's a 
specific bug of this function or if
it's a general feature of the registry (maybe the desired access does not restrict the 
existing access
in the way a file read open restrict what you can do to a file even if you have write 
rights)

Gerard

Reply via email to