reactos/win32ss/user
Andrew Boyarshin 458a26ab76
[WIN32SS:NTUSER] Use the 2nd parameter of NtUserGetThreadDesktop() as fallback. (#1065)
- The 2nd parameter is already passed in user-mode by GetThreadDesktop().
  It is then used by NtUserGetThreadDesktop() as a fallback for console
  threads.

- Lookup and validate the thread by using the IntTID2PTI() helper.
- Don't reference the desktop with too many access rights.
- Get rid of the old-school DECLARE_RETURN() & co. macros.

Co-authored-by: Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
2019-04-28 19:27:45 +02:00
..
ntuser [WIN32SS:NTUSER] Use the 2nd parameter of NtUserGetThreadDesktop() as fallback. (#1065) 2019-04-28 19:27:45 +02:00
rtl [WIN32SS][LPK] Add BiDi support to menus and window captions (#738) 2018-08-23 19:43:12 +02:00
user32 [WIN32SS:NTUSER] Use the 2nd parameter of NtUserGetThreadDesktop() as fallback. (#1065) 2019-04-28 19:27:45 +02:00
winsrv [WINSRV] Implement SrvGetThreadConsoleDesktop(). CORE-13470 2019-04-28 02:50:38 +02:00