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