Removes the active instance of an application from the restart list
#include <WinAPIDiag.au3>
_WinAPI_UnregisterApplicationRestart ( )
Success: | 1. |
Failure: | 0 and sets the @error flag to non-zero, @extended flag may contain the HRESULT error code. |
You do not need to call this function before exiting. You need to remove the registration only if you choose to
not restart the application. For example, you could remove the registration if your application entered a corrupted
state where a future restart would also fail. You must call _WinAPI_UnregisterApplicationRestart() before the
application fails abnormally.
This function requires Windows Vista or later.
_WinAPI_RegisterApplicationRestart
Search UnregisterApplicationRestart in MSDN Library.