reactos/base/applications
Joachim Henze e04c22dc8a [0.4.13][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:00:42 +01:00
..
atactl [REACTOS] Fix SIZE_T related warnings 2019-08-15 14:20:00 +02:00
cacls
calc [CALC] Enable support for HTMLHELP (#1877) 2019-08-26 16:14:01 +02:00
charmap
charmap_new [ATL] Retire atlnew 2019-04-18 19:21:37 +02:00
clipbrd
cmdutils [LABEL] Fix MSVC build. 2019-09-22 16:19:07 +02:00
control
drwtsn32 [ATL] Retire atlnew 2019-04-18 19:21:37 +02:00
dxdiag
extrac32
findstr
fltmc [ATL] Retire atlnew 2019-04-18 19:21:37 +02:00
fontview [FONTVIEW] Broadcast WM_FONTCHANGE message (#1815) 2019-08-08 21:41:15 +09:00
games [TRANSLATIONS] Update Turkish translations (#1650) 2019-07-21 17:49:12 +02:00
hh
iexplore
kbswitch
logoff
magnify [MAGNIFY] Minor whitespace / formatting fixes; use the new file headers + some code simplifications here and there... 2019-06-15 19:11:21 +02:00
mmc
mplay32 [TRANSLATIONS] Update Turkish translations (#1650) 2019-07-21 17:49:12 +02:00
msconfig [REACTOS] Fix SIZE_T related warnings 2019-08-15 14:20:00 +02:00
msconfig_new [REACTOS] Fix SIZE_T related warnings 2019-08-15 14:20:00 +02:00
mscutils [REACTOS] Fix SIZE_T related warnings 2019-08-15 14:20:00 +02:00
mshta
mspaint [0.4.13][MSPAINT] Revert LoadDIBFromFile for workaround (#2186) 2019-12-30 10:12:54 +01:00
mstsc [REACTOS] Fix SIZE_T related warnings 2019-08-15 14:20:00 +02:00
network [0.4.13][NETSTAT] Fix coverity #1477187 "Double free" (#4069) CORE-17831 2021-11-15 20:03:40 +01:00
notepad [0.4.13][NOTEPAD] Prioritize ASCII over UTF-8 (#2006) 2019-10-31 21:24:09 +01:00
osk [OSK] General refactoring 2019-08-15 20:35:17 +02:00
rapps [0.4.13][RAPPS] Pick some simplifications from master up to 0.4.15-dev-3726-gc262020 (e.g. CORE-18018 and (#2751)) 2022-01-24 10:03:37 +01:00
regedit [TRANSLATION] Polish translation update (#1916) 2019-09-20 21:51:47 +02:00
regedt32
sc
screensavers [0.4.13][USER32][NTUSER][3DTEXT] Squashed backport 2022-02-08 13:00:42 +01:00
setup16
shutdown [SHUTDOWN] Add Indonesian translation. 2019-06-20 17:31:48 +02:00
sndrec32 [0.4.13][SNDREC32] Fast-Forward to 0.4.15-dev-3294-ge98684e state (CORE-17815 and several PRs) 2022-01-17 22:32:16 +01:00
sndvol32 [SNDVOL32] Fix a typo in the bass and treble slider code 2019-09-24 23:28:17 +02:00
taskmgr [TASKMGR] Implement proper process tree ending 2019-08-15 19:07:05 +02:00
utilman [UTILMAN] Add Russian translation (#1934) 2019-09-24 17:35:30 +02:00
winhlp32 [0.4.13] Fix VSSolution's msbuild CORE-15991 2021-06-20 00:29:30 +02:00
winver
wordpad [0.4.13][WORDPAD] Fix icons for toolbar and formatbar (#3792) CORE-5823 2021-07-04 14:45:08 +02:00
write [TRANSLATIONS] Update Turkish translations (#1650) 2019-07-21 17:49:12 +02:00
wusa
CMakeLists.txt Implement Utility Manager software 2019-08-19 13:05:28 +02:00