[WIN32K]
authorHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Wed, 17 Dec 2014 00:33:40 +0000 (00:33 +0000)
committerHermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
Wed, 17 Dec 2014 00:33:40 +0000 (00:33 +0000)
commit5b22f2c5c3f72d51e392f17065e2c53d205a42a3
tree66013c163e161e1c586efcf4c8823f9c89a58dfa
parent09bdb1f5ce5f11668438db704765dfa7f7fff66b
[WIN32K]
- Simplify NtUserInitialize: we can check whether gpepCSRSS is != NULL to see if we are initialized or not (instead of using gbInitialized).
- The UserInitialize helper doesn't need to take parameters. The two event handles (power and media, used when we receive a power event -- for sleep, etc... -- and a media event -- like USB key insertion and such --) just need to be used in the not-yet-implemented "Initialize Power Request List" and "Initialize Media Change" steps.
- Something that should be done is to bugcheck if the USER version reported is != 5.0 (as windows does).

[WINSRV]
- Collapse common inclusions from usersrv and consrv into the common header winsrv.h.

[USERSRV]
- _UserSoundSentry is NTAPI
- Stub UserClientConnect (Timo's patch contains more involved code. I will commit it later).
- Our NtUserInitialize(0, NULL, NULL); call (that made Windows BSOD) is wrong. It should be done with its first parameter correctly set to the USER version (5.0) and the two other parameters are handles to power and media events (see above). We should create them before.
This is part of patch by Timo Kreuzer.
CORE-7505 #comment UserClientConnect stubbed (it should be better implemented, I will commit the code from the patch later on); power&media events initialized; NtUserInitialize corrected.

svn path=/trunk/; revision=65696
reactos/win32ss/include/ntuser.h
reactos/win32ss/user/ntuser/misc.c
reactos/win32ss/user/ntuser/ntstubs.c
reactos/win32ss/user/ntuser/ntuser.c
reactos/win32ss/user/ntuser/ntuser.h
reactos/win32ss/user/winsrv/consrv/consrv.h
reactos/win32ss/user/winsrv/usersrv/api.h
reactos/win32ss/user/winsrv/usersrv/init.c
reactos/win32ss/user/winsrv/usersrv/usersrv.h
reactos/win32ss/user/winsrv/winsrv.h