WerUnregisterRuntimeExceptionModule function (werapi.h)
Removes the registration of the Windows Error Reporting (WER) exception handler.
Syntax
HRESULT WerUnregisterRuntimeExceptionModule(
[in] PCWSTR pwszOutOfProcessCallbackDll,
[in, optional] PVOID pContext
);
Parameters
[in] pwszOutOfProcessCallbackDll
The name of the exception handler DLL whose registration you want to remove.
[in, optional] 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
Requirement | Value |
---|---|
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 |