Test::Smoke::Util::Win32ErrorMode - Utility function to switch off the error-popup for the current process.
This patch was provided in RT-39138. The code has changed quite a bit since then (9 years ago). But it still looked good and sane, so we decided to give it a place in the code.
kernel32::SetErrorMode with the flags:
SEM_NOGPFAULTERRORBOX to prevent popups during crashes.
It also calls
Win32::Process::Open()->SetPriorityClass() as a way to
renice() the process.
(c) MMVIII Jan Dubois <firstname.lastname@example.org> original patch
(c) MMXVII Abe Timmerman <email@example.com> integration into Test::Smoke.