[ros-dev] Probelms with ZwOpenKey or RtlFormatCurrentUserKeyPath?
Alex Ionescu
ionucu at videotron.ca
Wed Aug 2 15:49:31 CEST 2006
James Tabor wrote:
> 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?
Have you tried printing out the value of CurrentUserKeyPath?
Use DbgPrint with %wZ and check the output console.
Best regards,
Alex Ionescu
More information about the Ros-dev
mailing list