Add support for Win32 application restart
woollybah opened this issue · 1 comments
The win32 api (since Vista) supports the ability of an application to register itself to be able to automatically restart (for example, after a reboot).
Since I mostly do Win32 work on a laptop, and leave my apps open so I can carry on working on something the next time I open the lid, it's really annoying when Windows 10 decides to run an update/reboot cycle during the night whilst the laptop is closed and (apparently) hibernating.
Here's the API : https://docs.microsoft.com/en-us/windows/desktop/api/winbase/nf-winbase-registerapplicationrestart
It would be nice if we could utilise the API for use in something like MaxIDE, so that it might (at least) be open when I return to using the laptop the next day.
Registration APIs have been added.
As an example, MaxIDE now uses these.