reactos/base/applications
Joachim Henze d26a5e5be8 [0.4.11][USER32][NTUSER][3DTEXT] Squashed backport
[USER32] GetQueueStatus() should not return 0 when passing QS_ALLINPUT flag that includes QS_RAWINPUT (#4115)

GTK applications call GetQueueStatus(QS_ALLINPUT), where QS_ALLINPUT
specifies the QS_RAWINPUT flag as well, when these are compiled for
Windows XP+, and they expect the call to succeed on this platform.

On one side, ReactOS does not currently support this flag at all, but
since it claims to be XP/2003-compatible, applications may implicitly
expect the flag to be supported by GetQueueStatus() and the function
*NOT* failing when this flag is set.
(Later GTK apps don't care and just call GetQueueStatus(QS_ALLINPUT)
that includes QS_RAWINPUT, and therefore would fail as well on e.g.
Windows 2000...)

Otherwise, an observable effect is that some versions of libgdk-win32-2.0.0.dll
enter into an infinite loop when calling GetQueueStatus(QS_ALLINPUT),
since this call always failed on ReactOS.

On the other side, however, we should honour our winetests that handle
the presence of the QS_RAWINPUT flag and behave differently accordingly.
But since we do not support QS_RAWINPUT yet, we should keep their old
behaviour where QS_RAWINPUT is unused.

Thus, in order to accomodate both sides, we don't fail the GetQueueStatus()
call, but just set the ERROR_INVALID_FLAGS last error and continue it.

This fixes:
'All user32:TrackMouseEvent tests'
CORE-15686: Gimp 2.8.22 from rapps hangs after startup with 90%-100% CPU usage
and many dupes of that ticket like:
CORE-17551: Ardour hangs at the first start (GTK2 issue)
CORE-15151: newer "Inkscape 0.92.3" is unusable due to WIN32SS message queue lockup
CORE-14086: RawTherapee 5.0-r1-gtk2 fails to start (using 100% CPU)
CORE-11850: Geany 1.28 hangs with endless MsqSendMessage timed out
CORE-8475: Wireshark hangs after launch

It will also slightly appease, but not entirely fix:
CORE-8217: 3D Text ScreenSaver freezes system

Fix picked from 0.4.15-dev-3407-g 9c4397afdf
---------------------
[NTUSER] Do not remove message from the Msg Queue if it is not for us. (#4129)

CORE-8217 This part of the fix keeps the buttons working (Cancel/Ok/top-Right-X) even under high CPU-load
Patch from 'I_Kill_Bugs' contributor.

Fix picked from 0.4.15-dev-3499-g 7d1b50394b
---------------------
[3DTEXT] Fix 3dtext.scr using near 100% CPU (#4125) CORE-17866, CORE-8217

Fix picked from 0.4.15-dev-3443-g 5c9fdcb1de
2022-02-08 13:03:22 +01:00
..
atactl
cacls [TRANSLATION] Update Romanian translation (#851) 2018-09-14 11:04:36 +02:00
calc [TRANSLATION] Update Romanian translation (#851) 2018-09-14 11:04:36 +02:00
charmap [TRANSLATIONS] Estonian for various base applications 2018-11-07 16:58:16 +01:00
charmap_new [TRANSLATIONS] Estonian for various base applications 2018-11-07 16:58:16 +01:00
clipbrd [TRANSLATIONS] Estonian for various base applications 2018-11-07 16:58:16 +01:00
cmdutils [TRANSLATIONS] Estonian for various base applications 2018-11-07 16:58:16 +01:00
control
drwtsn32 [DRWTSN32] Add SMBIOS data to the system information (#1017) 2018-11-21 21:49:15 +01:00
dxdiag [SYSDM][DXDIAG][SYSTEMINFO] Include only one user-mode DMI library (#1054) 2018-11-21 22:07:54 +01:00
extrac32 [EXTRAC32] Sync with Wine Staging 3.3. CORE-14434 2018-03-25 12:58:56 +01:00
findstr [TRANSLATIONS] Estonian for various base applications 2018-11-07 16:58:16 +01:00
fltmc [FLTMC] Add volumes usage info 2018-11-11 18:05:47 +00:00
fontview [TRANSLATION] Update Simplified Chinese translation. (#1094) 2018-12-04 17:13:39 +01:00
games [TRANSLATION] Update Romanian translation (#851) 2018-09-14 11:04:36 +02:00
hh
iexplore [IEXPLORE] Sync with Wine Staging 3.3. CORE-14434 2018-04-01 13:08:41 +01:00
kbswitch [TRANSLATIONS] Estonian for various base applications 2018-11-07 16:58:16 +01:00
logoff [TRANSLATIONS] Estonian for various base applications 2018-11-07 16:58:16 +01:00
magnify [TRANSLATION] Update Romanian translation (#851) 2018-09-14 11:04:36 +02:00
mmc [TRANSLATION] Update Romanian translation (#851) 2018-09-14 11:04:36 +02:00
mplay32 [TRANSLATION] Update Romanian translation (#851) 2018-09-14 11:04:36 +02:00
msconfig [TRANSLATION] Update Romanian translation (#851) 2018-09-14 11:04:36 +02:00
msconfig_new [TRANSLATION] Update Simplified Chinese translation. (#1096) 2018-12-05 16:50:05 +01:00
mscutils [TRANSLATION] Update Romanian translation (#851) 2018-09-14 11:04:36 +02:00
mshta [MSHTA] Implement MSHTA.exe (#577) CORE-12813 2018-06-05 17:17:00 +02:00
mspaint [0.4.11][MSPAINT] Revert LoadDIBFromFile for workaround (#2186) CORE-16566 2020-10-06 03:20:49 +02:00
mstsc [TRANSLATION] Update Romanian translation (#851) 2018-09-14 11:04:36 +02:00
network [TRANSLATION] Update Simplified Chinese translation. (#1096) 2018-12-05 16:50:05 +01:00
notepad [NOTEPAD] Update russian translation 2018-12-08 23:36:06 +01:00
osk [OSK] Add the minimize button (#1102) 2018-12-08 23:44:42 +01:00
rapps [0.4.11][RAPPS] Pick some simplifications from master up to 0.4.15-dev-3726-gc262020 (e.g. CORE-18018 and (#2751)) 2022-01-24 10:19:41 +01:00
regedit [REGEDIT] Improve the layout of controls (#967) 2018-10-24 18:19:48 +09:00
regedt32
sc [APPLICATIONS] Fix 64 bit issues 2018-08-04 19:19:34 +02:00
screensavers [0.4.11][USER32][NTUSER][3DTEXT] Squashed backport 2022-02-08 13:03:22 +01:00
setup16
shutdown [TRANSLATION] Update Simplified Chinese translation. (#1094) 2018-12-04 17:13:39 +01:00
sndrec32 [0.4.11][SNDREC32] Fast-Forward to 0.4.15-dev-3294-ge98684e state (CORE-17815 and several PRs) 2022-01-17 22:38:22 +01:00
sndvol32 [TRANSLATION] Update Romanian translation (#851) 2018-09-14 11:04:36 +02:00
taskmgr [TASKMGR][TRANSLATION] Estonian localization 2018-10-24 21:35:20 +02:00
winhlp32 [FDEBUG][OSK][WINHLP32] Turkish translations update. (#1022) 2018-11-08 18:52:56 +01:00
winver
wordpad [0.4.11][WORDPAD] Fix icons for toolbar and formatbar (#3792) CORE-5823 2021-07-04 14:46:38 +02:00
write [WRITE] Sync with Wine Staging 3.3. CORE-14434 2018-04-01 13:10:37 +01:00
wusa [UPDATES] New stubs for Automatic Updates service and WUSA.exe. Presence of this modules required for installation by some NT6+ applications. 2018-08-19 19:56:18 +02:00
CMakeLists.txt [UPDATES] New stubs for Automatic Updates service and WUSA.exe. Presence of this modules required for installation by some NT6+ applications. 2018-08-19 19:56:18 +02:00