[ros-kernel] Re: RtlQueryRegistryValues() in WIN32K

Martin Fuchs martin-fuchs at gmx.net
Thu Sep 16 00:01:35 CEST 2004


> One reason could be (i don't know) that the desktop thread (who usually 
> draws the background on the desktop, unless PaintDesktop() is used in 
> another application) runs in the context of CSRSS. I don't know if you 
> can access HKCU from CSRSS.

I don't know either. This is what I know:
You can access HKEY_CURRENT_USER from the SYSTEM account.
PaintDesktop() is normally called from explorer, this runs in the logged
on user context - so this should be no problem.

> However after the user logged in you should 
> propably somehow notify csrss to check this key, you however should not 
> query the registry on every repaint, it'd be better if the text was 
> stored in some global variable (or even better per window station if 
> reactos might get the ability of multiple user logins without creating 
> new sessions).

Sure, it is already cached in a static variable. Since the system version
will not change while the system is running, this should be sufficient.

Regards,

   Martin


More information about the Ros-kernel mailing list