WerUnregisterAdditionalProcess function (werapi.h)

Removes a process from the list of additional processes to be included in the Windows Error Reporting (WER) error report.

Syntax

HRESULT WerUnregisterAdditionalProcess(
  DWORD processId
);

Parameters

processId

The Id of the process to remove. It must have been previously registered with WerRegisterAdditionalProcess.

Return value

This function returns S_OK on success or an error code on failure, including the following error codes.

Return code Description
WER_E_INVALID_STATE The process state is not valid. For example, the process is in application recovery mode.
WER_E_NOT_FOUND The list of registered processes does not contain the specified process.

Requirements

Requirement Value
Minimum supported client Windows 10, version 1703 [desktop apps | UWP apps]
Minimum supported server Windows Server 2016 [desktop apps | UWP apps]
Target Platform Windows
Header werapi.h
Library Kernel32.lib
DLL Kernel32.dll

See also

WerRegisterAdditionalProcess, Windows Error Reporting