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
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
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