[NTUSER] Fix desktop and window station assignment for csrss
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Sun, 16 Dec 2018 11:19:54 +0000 (13:19 +0200)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Wed, 19 Dec 2018 14:13:18 +0000 (16:13 +0200)
commitdad76af8a44c6ccec94de564b5db6755f0422500
tree1c4cce72ec84ab17d5cb4077f439e0c4c46d3eb6
parent298a46acbf39eff14bfe9a193b04c7b5f2a67350
[NTUSER] Fix desktop and window station assignment for csrss
- NtUserSetInformationThread: Stub UserThreadUseActiveDesktop and UserThreadRestoreDesktop
- Properly mark the first thread that enters win32k belonging to csrss. At this point we assume that since gpepCSRSS isn't initialized yet, it probably is the first thread.

[WINSRV] Use NtUserSetInformationThread to set the current desktop when needed
-When csrss needs to use user32 or enter win32k, it first needs to assign the current thread to a desktop.
win32ss/user/ntuser/main.c
win32ss/user/ntuser/ntstubs.c
win32ss/user/winsrv/usersrv/harderror.c
win32ss/user/winsrv/usersrv/shutdown.c