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 codeDescription
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

Minimum supported client

Windows 10, version 1703 [desktop apps only]

Minimum supported server

Windows Server 2016 [desktop apps only]

Header

Werapi.h

Library

Kernel32.lib

DLL

Kernel32.dll

See also

WER Functions
WerRegisterCustomMetadata
Windows Error Reporting

 

 

Show: