reactos/modules/rostests/apitests/shell32
Hermès Bélusca-Maïto 4bf32102ab
[SHELL32_APITEST] ShellExecCmdLine: Do **NOT** use TerminateProcess to close the opened windows.
This design, introduced in 418edcd2b, is fundamentally flawed as it
can also close windows unrelated to the running test (e.g. windows
of programs that the user can start, while the test is running).

But since we cannot do much better, mitigate instead the other main
problem of this design: Just use PostMessageW(WM_CLOSE), as it used
to be, instead of TerminateProcess().

Indeed, using TerminateProcess() otherwise could kill unrelated
processes the test hasn't created. In particular it could kill the
csrss.exe system process if, during the testing procedure, a hard-error
popup shows up.
And this is precisely the case when this test runs with limited memory,
and a hard-error
  "Insufficient system resources exist to complete the requested service."
arises.
2022-05-06 21:32:08 +02:00
..
1.ico
AddCommas.cpp
CFSFolder.cpp
CheckEscapes.cpp
CIDLData.cpp
CMakeLists.txt
CMyComputer.cpp
Control_RunDLLW.cpp
CShellDesktop.cpp
CShellLink.cpp
CUserNotification.cpp
DragDrop.cpp
ExtractIconEx.cpp
FindExecutable.cpp [SHELL32_APITEST] Try to fix Test Win2003_x64 again 2022-02-13 17:45:08 +09:00
IShellFolderViewCB.cpp
menu.cpp
OpenAs_RunDLL.cpp
PathResolve.cpp
resource.rc
SHAppBarMessage.cpp
SHChangeNotify.cpp [SHELL32_APITEST] Try to fix Test Win2003_x64 again 2022-02-13 17:45:08 +09:00
SHCreateDataObject.cpp
SHCreateFileDataObject.cpp
SHCreateFileExtractIconW.cpp
shell32_apitest.spec
shell32_apitest_sub.cpp [SHELL32_APITEST] Try to fix Test Win2003_x64 again 2022-02-13 17:45:08 +09:00
shell32_apitest_sub.h [SHELL32_APITEST] Try to fix Test Win2003_x64 again 2022-02-13 17:45:08 +09:00
ShellExecCmdLine.cpp [SHELL32_APITEST] ShellExecCmdLine: Do **NOT** use TerminateProcess to close the opened windows. 2022-05-06 21:32:08 +02:00
ShellExecuteEx.cpp [SHELL32_APITEST] ShellExecuteEx: Introduce a CleanupNewlyCreatedWindows() helper similar to the one of the ShellExecCmdLine test. 2022-05-06 21:32:01 +02:00
ShellExecuteW.cpp
ShellHook.cpp
ShellState.cpp [REACTOS] Add '\n' to debug logs 2022-05-04 03:28:38 +03:00
shelltest.cpp
shelltest.h
SHGetAttributesFromDataObject.cpp
SHLimitInputEdit.cpp
SHParseDisplayName.cpp
testlist.c