Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Removes a file from the list of files to be added to Windows Error Reporting (WER) reports generated for the current process.
Syntax
HRESULT WerUnregisterFile(
[in] PCWSTR pwzFilePath
);
Parameters
[in] pwzFilePath
The full path to the file. This file must have been registered using the WerRegisterFile function.
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 files does not contain the specified file. |
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows Vista [desktop apps | UWP apps] |
| Minimum supported server | Windows Server 2008 [desktop apps | UWP apps] |
| Target Platform | Windows |
| Header | werapi.h |
| Library | Kernel32.lib |
| DLL | Kernel32.dll |