[ros-dev] Probelms with ZwOpenKey or RtlFormatCurrentUserKeyPath?

James Tabor jimtabor at adsl-64-217-116-74.dsl.hstntx.swbell.net
Wed Aug 2 14:08:37 CEST 2006


Timo Kreuzer wrote:
> Hi,
> I tried to read the Values of the SysColors from registry in win32k. But 
> I get an error opening the CurrentUserKey.
> 
> This is the code:
> 
>   RtlFormatCurrentUserKeyPath(&CurrentUserKeyPath);
>   
> InitializeObjectAttributes(&ObjectAttributes,&CurrentUserKeyPath,OBJ_CASE_INSENSITIVE,NULL,NULL);
>   Status = ZwOpenKey(&CurrentUserKeyHandle, KEY_READ, &ObjectAttributes);
> 
> And I always get Status == STATUS_OBJECT_NAME_NOT_FOUND
> 
> This is in trunk.
> Is there something wrong with my code or is there something wrong with 
> Registry functions?
> 
> Greetings,
> Timo
> 
Hi,
It's possible it is not implemented in win32k ntuser/misc.c, most of the SPI is not implemented.
We probably need to just do a full implementation of all the SPI functions just like wine did months 
ago.

Sorry,
James


More information about the Ros-dev mailing list