WerUnregisterCustomMetadata function (werapi.h)

Removes an item of app-specific metadata being collected during Windows Error Reporting (WER) for the application.

Syntax

HRESULT 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
WER_E_INVALID_STATE The process state is not valid. For example, the process is in application recovery mode.
WER_E_NOT_FOUND WER could not find the metadata item to remove.

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

WerRegisterCustomMetadata, Windows Error Reporting