Share via


HidP_MaxDataListLength (Windows Embedded CE 6.0)

1/6/2010

This function returns the maximum number of HIDP_DATA structures that HidP_GetData can return for a specified type of HID report and a specified top-level collection.

Syntax

ULONG HidP_MaxDataListLength(
  HIDP_REPORT_TYPE ReportType,
  PHIDP_PREPARSED_DATA PreparsedData
);

Parameters

  • ReportType
    [in] HIDP_REPORT_TYPE enumerator value that indicates the report type.
  • PreparsedData
    [in] Pointer to a top-level collection's preparsed data.

Return Value

If successful, HidP_MaxDataListLength returns the maximum number of HIDP_DATA structures that HidP_GetData might return for a specified type of HID report and a specified top-level collection. Otherwise, the function returns zero, which indicates that either the report type or the preparsed data is not valid.

Remarks

HID client drivers call HidP_MaxDataListLength to determine the maximum number of HIDP_DATA structures that HidP_GetData can return.

Requirements

Header hidpi.h
Library Hidparse_lib.lib
Windows Embedded CE Windows CE .NET 4.2 and later

See Also

Reference

HID Parser Functions
HIDP_DATA
HidP_GetData
HIDP_REPORT_TYPE
HidP_SetData