[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:
Doug Lyons 2022-01-05 19:10:56 -06:00 committed by GitHub
parent 40b9ee0ae0
commit 9db24e33c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -332,12 +332,13 @@ 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,
szApplicationName,
szCommandLine, szCommandLine,
NULL, NULL,
NULL, NULL,
FALSE, FALSE,
0, IDLE_PRIORITY_CLASS,
NULL, NULL,
NULL, NULL,
&StartupInfo, &StartupInfo,