DdqGetDiagnosticRecordSummary function (diagnosticdataquery.h)

Fetches general statistics about the diagnostic data records, filterable by producer.

Syntax

HRESULT DdqGetDiagnosticRecordSummary(
  HDIAGNOSTIC_DATA_QUERY_SESSION hSession,
  const PCWSTR                   *producerNames,
  UINT32                         producerNameCount,
  DIAGNOSTIC_DATA_GENERAL_STATS  *generalStats
);

Parameters

hSession

Type: HANDLE Handle to the Diagnostic Data Query session.

producerNames

Type: PCWSTR* List of producer names to search for. A diagnostic data record that matches at least one of the producer names is included as a result in this search criteria. Use nullptr for this value to indicate no filter by producers.

producerNameCount

Type: UINT32 The number of producer names in the list of producer names to search for. Use 0 for this value to indicate no filter by producers.

generalStats

Type: DIAGNOSTIC_DATA_GENERAL_STATS* This output parameter is a pointer to the resource that contains information about the general statistics for the diagnostic data records.

Return value

Type: HRESULT Returns S_OK on successful completion.

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