DdqExtractDiagnosticReport function (diagnosticdataquery.h)

Used for retrieving Windows Error Reporting reports, this API extracts cabs to destination path specified. If the error report does not contain any cabs, no work is performed.

Syntax

HRESULT DdqExtractDiagnosticReport(
  HDIAGNOSTIC_DATA_QUERY_SESSION hSession,
  UINT32                         reportStoreType,
  PCWSTR                         reportKey,
  PCWSTR                         destinationPath
);

Parameters

hSession

Type: HANDLE Handle to the current Diagnostic Data Query session

reportStoreType

Type: UINT32 The type of report store to extract from. See remarks.

reportKey

Type: PCWSTR A pointer to the report key string. See remarks.

destinationPath

Type: PCWSTR The destination path the report should be extracted to.

Return value

Type: HRESULT Returns S_OK on successful completion.

Remarks

For report store types, see the WER APIs. For report keys, see the WER APIs.

Requirements

Requirement Value
Minimum supported client Windows 10, version 2004 (10.0; Build 19041)
Minimum supported server Windows Server, version 2004 (10.0; Build 19041)
Header diagnosticdataquery.h