Export (0) Print
Expand All

UnregisterApplicationRestart function

Removes the active instance of an application from the restart list.

Syntax


HRESULT WINAPI UnregisterApplicationRestart(void);

Parameters

This function has no parameters.

Return value

This function returns S_OK on success or one of the following error codes.

Return codeDescription
E_FAIL

Internal error.

 

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 this function before the application fails abnormally.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Winbase.h (include Windows.h)

Library

Kernel32.lib

DLL

Kernel32.dll

See also

RegisterApplicationRestart

 

 

Community Additions

ADD
Show:
© 2014 Microsoft