Compartilhar via


HidP_GetCollectionDescription (Windows CE 5.0)

Send Feedback

This function adds a linked list of collection descriptors to the DeviceDescription parameter block. It also adds the corresponding report-identifier information that is described by the specified report descriptor.

NTSTATUS HidP_GetCollectionDescription(  PHIDP_REPORT_DESCRIPTOR ReportDesc,  ULONG DescLength,  POOL_TYPE PoolType,  PHIDP_DEVICE_DESC DeviceDescription);

Parameters

  • ReportDesc
    [in] Raw report descriptor.
  • DescLength
    [in] Report descriptor length.
  • PoolType
    [in] Ignored, set to zero.
  • DeviceDescription
    [out] Device description block that the above lists will fill in.

Return Values

The following table shows the possible return values.

Value Description
STATUS_SUCCESS No errors occurred when parsing the report descriptor and allocating the memory blocks necessary to describe the device.
STATUS_NO_DATA_DETECTED No top-level collections existed in the report descriptor.
STATUS_COULD_NOT_INTERPRET Report descriptor error detected. For more information on the parsing error, see the error code in the Dbg member of the device description block.
STATUS_BUFFER_TOO_SMALL While parsing an item, the function reached the end of the report descriptor when it expected more data to exist.
STATUS_INSUFFICIENT_RESOURCES Memory allocation failed.
STATUS_ILLEGAL_INSTRUCTION An item existed in the report descriptor that the parser does not recognize.
HIDP_STATUS_INVALID_REPORT_TYPE Report identifier of zero existed in the descriptor.

Requirements

OS Versions: Windows CE .NET 4.2 and later.
Header: Hidpddi.h.
Link Library: Hidparse_lib.lib.

See Also

HidP_FreeCollectionDescription

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.