5 out of 6 rated this helpful - Rate this topic

UnregisterApplicationRestart function

Applies to: desktop apps only

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

Minimum supported server

Windows Server 2008

Header

Winbase.h (include Windows.h)

Library

Kernel32.lib

DLL

Kernel32.dll

See also

RegisterApplicationRestart

 

 

Send comments about this topic to Microsoft

Build date: 2/3/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ