Function Reference


_WinAPI_UnregisterApplicationRestart

Removes the active instance of an application from the restart list

#include <WinAPIDiag.au3>
_WinAPI_UnregisterApplicationRestart ( )

Return Value

Success: 1.
Failure: 0 and sets the @error flag to non-zero, @extended flag may contain the HRESULT error code.

Remarks

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.

Related

_WinAPI_RegisterApplicationRestart

See Also

Search UnregisterApplicationRestart in MSDN Library.