[ros-dev] Probelms with ZwOpenKey or RtlFormatCurrentUserKeyPath?

Timo Kreuzer timo.kreuzer at web.de
Wed Aug 2 13:24:49 CEST 2006


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



More information about the Ros-dev mailing list