Kernel32WerRegisterCustomMetadata Method
Registers app-specific metadata to be collected (in the form of key/value strings) when WER creates an error report.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("Kernel32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ExactSpelling = true, ThrowOnUnmappableChar = true)]
public static HResult WerRegisterCustomMetadata(
string key,
string value
)
<DllImportAttribute("Kernel32.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ExactSpelling := true, ThrowOnUnmappableChar := true>]
Public Shared Function WerRegisterCustomMetadata (
key As String,
value As String
) As HResult
Dim key As String
Dim value As String
Dim returnValue As HResult
returnValue = Kernel32.WerRegisterCustomMetadata(key,
value)
public:
[DllImportAttribute(L"Kernel32.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ExactSpelling = true, ThrowOnUnmappableChar = true)]
static HResult WerRegisterCustomMetadata(
String^ key,
String^ value
)
[<DllImportAttribute("Kernel32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ExactSpelling = true, ThrowOnUnmappableChar = true)>]
static member WerRegisterCustomMetadata :
key : string *
value : string -> HResult
No code example is currently available or this language may not be supported.
- key String
-
The "key" string for the metadata element being registered.
- value String
-
The value string for the metadata element being registered.
HResult
Returns
S_OK on success, or an
HResult error code on failure.