DdqGetDiagnosticRecordProducerAtIndex function (diagnosticdataquery.h)

Fetches the description of a producer at the specified index in the resource pointed to by the HDIAGNOSTIC_EVENT_PRODUCER_DESCRIPTION handle.

Syntax

HRESULT DdqGetDiagnosticRecordProducerAtIndex(
  HDIAGNOSTIC_EVENT_PRODUCER_DESCRIPTION     hProducerDescription,
  UINT32                                     index,
  DIAGNOSTIC_DATA_EVENT_PRODUCER_DESCRIPTION *producerDescription
);

Parameters

hProducerDescription

Type: HANDLE Handle to the resource that contains set of producers.

index

Type: UINT32 The index of the producer to fetch.

producerDescription

Type: DIAGNOSTIC_DATA_EVENT_PRODUCER_DESCRIPTION* This output parameter is the pointer to the resource that describes the fetched producer.

Return value

Type: HRESULT Returns S_OK on successful completion.

Remarks

See DIAGNOSTIC_DATA_EVENT_PRODUCER_DESCRIPTION for documentation on how a producer is defined.

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