Get the latest tech news
Windows 11 disabled all ways to get around Auto Restarts. Is there a workaround?
I run Matlab simulations that sometimes take weeks to finish and when Windows restarts I lose all my work so I really need a way to stop auto restarts. Windows 11 seems to have disabled all ways to...
(possibly, as @josh3736 pointed out, Windows Update may break this eventually. If Matlab chooses to return TRUE on receiving this message, it will close, even if the shutdown is blocked this way. (And if you call the API without returning FALSE on receiving WM_QUERYENDSESSION, then it will not succeed as your app would close as a result of it)
Or read this on Hacker News