Automatic Application Restart and Recovery

When a critical problem occurs in an application, WER is able to restart the application automatically after its termination. For Windows Vista, it is a quality requirement that most of the applications that ship with Windows Vista (such as Windows Explorer, Internet Explorer, RegEdit, and the games) are restart aware. Even better, WER also allows an application to recover any important data before being terminated.

Automatic Application Restart

A restart-aware application must register itself with WER by calling the following function:

HRESULT RegisterApplicationRestart(
   PCWSTR pwzCommandline,
   DWORD dwFlags);

The pwzCommandLine parameter is a Unicode string identifying the command line that WER should use ...

Get Windows® via C/C++, Fifth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.