mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 12:55:43 +00:00
[WINLOGON] Start screen saver as current user (#4135)
This fixes displaying user-defined text for 3D Text ScreenSaver. Also set the process to IDLE_PRIORITY_CLASS. CORE-17875
This commit is contained in:
parent
40b9ee0ae0
commit
9db24e33c7
1 changed files with 11 additions and 10 deletions
|
@ -332,16 +332,17 @@ StartScreenSaver(
|
||||||
/* FIXME: Run the screen saver on the secure screen saver desktop if required */
|
/* FIXME: Run the screen saver on the secure screen saver desktop if required */
|
||||||
StartupInfo.lpDesktop = L"WinSta0\\Default";
|
StartupInfo.lpDesktop = L"WinSta0\\Default";
|
||||||
|
|
||||||
ret = CreateProcessW(szApplicationName,
|
ret = CreateProcessAsUserW(Session->UserToken,
|
||||||
szCommandLine,
|
szApplicationName,
|
||||||
NULL,
|
szCommandLine,
|
||||||
NULL,
|
NULL,
|
||||||
FALSE,
|
NULL,
|
||||||
0,
|
FALSE,
|
||||||
NULL,
|
IDLE_PRIORITY_CLASS,
|
||||||
NULL,
|
NULL,
|
||||||
&StartupInfo,
|
NULL,
|
||||||
&ProcessInformation);
|
&StartupInfo,
|
||||||
|
&ProcessInformation);
|
||||||
if (!ret)
|
if (!ret)
|
||||||
{
|
{
|
||||||
ERR("WL: Unable to start %S, error %lu\n", szApplicationName, GetLastError());
|
ERR("WL: Unable to start %S, error %lu\n", szApplicationName, GetLastError());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue