[RTL] Import Wine commit f87767b by Piotr Caban: Handle ACTCTX_FLAG_ASSEMBLY_DIRECTORY_VALID flag when opening manifest in RtlCreateActivationContext.

git-svn-id: svn://svn.reactos.org/reactos/trunk@65511 97493ccd-5924-5043-b1f5-66cb403b36ce
[KERNEL32_WINETEST] Addendum to r65511.

git-svn-id: svn://svn.reactos.org/reactos/trunk@65512 97493ccd-5924-5043-b1f5-66cb403b36ce
[USER32]
- Call GetThreadConsoleDesktop of CONSRV if needed, in GetThreadDesktop (in case the process is a console app).
- Introduce two last-error helpers UserSetLast(NT)Error which work the same as the (Base)SetLast(NT)Error of kernel32, needed for CSR status errors etc...

[WINSRV]
- Improve the stub of SrvGetThreadConsoleDesktop (it needs to success, and atm. it always zeroes-out the returned console desktop handle).

git-svn-id: svn://svn.reactos.org/reactos/trunk@65513 97493ccd-5924-5043-b1f5-66cb403b36ce
[NtUser]
- Revert 65431, it seems to be breaking more than it fixes. Process Explorer will break again, working on a better way to fix this. See CORE-7447.

git-svn-id: svn://svn.reactos.org/reactos/trunk@65514 97493ccd-5924-5043-b1f5-66cb403b36ce
[USER32]: Move some logon-related functions to an appropriate file.

git-svn-id: svn://svn.reactos.org/reactos/trunk@65515 97493ccd-5924-5043-b1f5-66cb403b36ce
[USERSRV]: Use UlongToHandle and make ServicesProcessId global (will be used later on, for shutdown). Part 2/X
CORE-8322

git-svn-id: svn://svn.reactos.org/reactos/trunk@65516 97493ccd-5924-5043-b1f5-66cb403b36ce
[WIN32K]: Move IntClientShutdown function to a dedicated file (that will contain other shutdown helper functions in the future). Part 3/X
CORE-8322

git-svn-id: svn://svn.reactos.org/reactos/trunk@65517 97493ccd-5924-5043-b1f5-66cb403b36ce
[WIN32K]: Remove those unneeded #defines, they are already declared in include/reactos/undocuser.h
CORE-8322

git-svn-id: svn://svn.reactos.org/reactos/trunk@65518 97493ccd-5924-5043-b1f5-66cb403b36ce
[WIN32K][ROSTESTS]
So...
... first of all NtUserQueryInformationThread takes only 4 parameters in Win2k3 so do it as well...
... and since we claim at being compatible with Win2k3 (and not XP), one **MUST** review **ALL** our win32k exports, in win32ss/w32ksvc.db database first, and then in our w32kdll apitests !!!!!
But I won't do it !

git-svn-id: svn://svn.reactos.org/reactos/trunk@65519 97493ccd-5924-5043-b1f5-66cb403b36ce
Forgot this file too.

git-svn-id: svn://svn.reactos.org/reactos/trunk@65520 97493ccd-5924-5043-b1f5-66cb403b36ce
[USER32]
- Move to an appropriate file, and correctly implement (i.e. via CSR call to USERSRV) EndTask.
[USERSRV]
- Hackplement SrvEndTask using our old code.

Part 4/X

CORE-8322

git-svn-id: svn://svn.reactos.org/reactos/trunk@65521 97493ccd-5924-5043-b1f5-66cb403b36ce