WerStoreQueryReportMetadataV1 function (werapi.h)
Retrieves metadata about a Windows Error Reporting (WER) report in the store.
Syntax
HRESULT WerStoreQueryReportMetadataV1(
HREPORTSTORE hReportStore,
PCWSTR pszReportKey,
PWER_REPORT_METADATA_V1 pReportMetadata
);
Parameters
hReportStore
The error report store (previously retrieved with WerStoreOpen).
pszReportKey
The string identifying which report is being queried (previously retrieved with WerStoreGetFirstReportKey or WerStoreGetNextReportKey).
pReportMetadata
A pointer to the report store metadata in the form of a WER_REPORT_METADATA_V1 structure.
Return value
This function returns S_OK on success or an error code on failure, including the following error code.
Return code | Description |
---|---|
E_INVALID_ARG | One of the arguments is not a valid value. |
ERROR_INSUFFICIENT_BUFFER | There is not enough memory available to retrieve the metadata. |
Requirements
Requirement | Value |
---|---|
Header | werapi.h |
See also
WER_REPORT_METADATA_V1, WerStoreGetFirstReportKey, WerStoreGetNextReportKey, Windows Error Reporting