AddERExcludedApplicationA function

[The AddERExcludedApplication function is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. Instead, use the WerAddExcludedApplication function.]

Excludes the specified application from error reporting.


BOOL AddERExcludedApplicationA(
  LPCSTR szApplication



The name of the executable file for the application, including the file name extension. The name cannot contain path information.

Return value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero. To get extended error information, see GetLastError.


This function stores the excluded application list under the HKEY_LOCAL_MACHINE hive. The calling process must have permissions to write to this registry hive.


Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header errorrep.h
Library Faultrep.lib
DLL Faultrep.dll

See also


WER Functions

Windows Error Reporting