Alex Ionescu schrieb:
Ged Murphy wrote:
  
Timo Kreuzer wrote:

    
It has in fact nothing to do with the presence of the Keys. I have 
written the appearance page of the desk.cpl, it set's the colors and 
writes the correct values to HKLM\Control Panel\Colors (at least on WinXP)
      
You aren't using ZwOpenKey in a cpl are you?
    
Course he isn't, his original problem was not being in a logged in
account, which implies SYSTEM-context level application.
  
In the cpl, I'm using RegOpenKey, of course, and that works.
This code is for implementing reading SysColor from the registry in win32k.sys.
I have now written a function IntSysColorsUpdatePerUserSettings inside win32k, wich is called just before IntDesktopUpdatePerUserSettings. (at this point the user is logged on).
It now uses RtlQueryRegistryValues to query all the color values at once and call a Callback procedure for every entry.
Don't know if it works, because trunk is always restarting at second level setup. and never logging on.
I'm just recompiling lastest rev...