3 ms·
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-exitwindowsex https://docs.microsoft.com/en-us/windows/win32/api/winuser/n... EWX_FORCEIF
by Terry_Roll 5y ago
https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-exitwindowsex https://docs.microsoft.com/en-us/windows/win32/api/winuser/n...
EWX_FORCEIFHUNG 0x00000010
Forces processes to terminate if they do not respond to the WM_QUERYENDSESSION or WM_ENDSESSION message within the timeout interval. For more information, see the Remarks.
If the EWX_FORCEIFHUNG value is specified, the system forces hung applications to close and does not display the dialog box.
- jeroenhd 5y agoIf forced shutdown is a priority, causing a bugcheck would probably be your best bet. This could be part of the USB driver for the device, or you could write a piece of software running as admin to trigger a fail state (like killing wininit or any other critical part of Windows). You'd have to watch out that you don't let the system store a memory dump, of course, that'd be the exact opposite of what you want.
- Terry_Roll 5y agoNot a battery flat state?