DdqGetDiagnosticRecordCategoryCount function (diagnosticdataquery.h)

Fetches the number (size) of diagnostic record categories in the resource pointed by the HDIAGNOSTIC_EVENT_CATEGORY_DESCRIPTION handle.

Syntax

HRESULT DdqGetDiagnosticRecordCategoryCount(
  HDIAGNOSTIC_EVENT_CATEGORY_DESCRIPTION hCategoryDescription,
  UINT32                                 *categoryDescriptionCount
);

Parameters

hCategoryDescription

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

categoryDescriptionCount

Type: UINT32* This output parameter is a pointer to the number of categories in the diagnostic record category array.

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