WerUnregisterRuntimeExceptionModule function

Removes the registration of your WER exception handler.

Syntax

HRESULT WerUnregisterRuntimeExceptionModule(
  PCWSTR pwszOutOfProcessCallbackDll,
  PVOID  pContext
);

Parameters

pwszOutOfProcessCallbackDll

The name of the exception handler DLL whose registration you want to remove.

pContext

A pointer to arbitrary context information that was passed to the callback.

Return value

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

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 runtime exception handlers does not contain the specified exception handler.

Remarks

To register your runtime exception handler, call the WerRegisterRuntimeExceptionModule function.

Requirements

   
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header werapi.h
Library Kernel32.lib
DLL Kernel32.dll