DdqGetDiagnosticRecordCategoryAtIndex function (diagnosticdataquery.h)

Fetches a diagnostic record category at the specified index in the resource pointed to bythe HDIAGNOSTIC_DATA_EVENT_CATEGORY_DESCRIPTION handle.

Syntax

HRESULT DdqGetDiagnosticRecordCategoryAtIndex(
  HDIAGNOSTIC_EVENT_CATEGORY_DESCRIPTION     hCategoryDescription,
  UINT32                                     index,
  DIAGNOSTIC_DATA_EVENT_CATEGORY_DESCRIPTION *categoryDescription
);

Parameters

hCategoryDescription

Type: HANDLE Handle to the resource that contains the list of categories and their descriptions

index

Type: UINT32 The index of the category to be fetched.

categoryDescription

Type: DIAGNOSTIC_DATA_EVENT_CATEGORY_DESCRIPTION This outpoint parameter is a pointer to the category and its description that was fetched.

Return value

Type: HRESULT Returns S_OK on successful completion.

Remarks

See DIAGNOSTIC_DATA_EVENT_CATEGORY_DESCRIPTION for documentation on how a category 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