AddERExcludedApplicationA function (errorrep.h)

[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.

Syntax

BOOL AddERExcludedApplicationA(
  [in] LPCSTR szApplication
);

Parameters

[in] 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.

Remarks

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.

Note

The errorrep.h header defines AddERExcludedApplication as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.

Requirements

Requirement Value
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

ReportFault

WER Functions

Windows Error Reporting