WerUnregisterCustomMetadata function
Removes an item of app-specific metadata being collected during error reporting for the application.
Syntax
HRESULT WINAPI WerUnRegisterCustomMetadata( PCWSTR key );
Parameters
- key
-
The "key" string for the metadata element being removed. It must have been previously registered with the WerRegisterCustomMetadata function.
Return value
This function returns S_OK on success or an error code on failure, including the following error codes.
| Return code | Description |
|---|---|
|
The process state is not valid. For example, the process is in application recovery mode. |
|
WER could not find the metadata item to remove. |
Requirements
|
Minimum supported client |
Windows 10, version 1703 [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2016 [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also
Show: