// hidpi.h
NTSTATUS HidP_GetLinkCollectionNodes(
[out] PHIDP_LINK_COLLECTION_NODE LinkCollectionNodes,
[in, out] PULONG LinkCollectionNodesLength,
[in] PHIDP_PREPARSED_DATA PreparsedData
);
View the official Windows Driver Kit DDI referenceNo description available.
The HidP_GetLinkCollectionNodes routine returns a top-level collection's link collection array.
LinkCollectionNodes [out]Pointer to a caller-allocated array of HIDP_LINK_COLLECTION_NODE structures in which HidP_GetLinkCollectionNodes returns a top-level collection's link collection array.
LinkCollectionNodesLength [in, out]Specifies, on input, the length, in array elements, of the LinkCollectionNodes buffer. On output, the routine sets LinkCollectionNodesLength to the number of entries in the array that it set.
PreparsedData [in]Pointer to the preparsed data of the top-level collection for which this routine returns a link collection array.
HidP_GetLinkCollectionNodes returns one of the following status codes:
| Return code | Description |
|---|---|
| HIDP_STATUS_SUCCESS | The routine successfully returned the specified collection's link collection array. |
| HIDP_STATUS_INVALID_PREPARSED_DATA | The preparsed data is not valid. |
| HIDP_STATUS_BUFFER_TOO_SMALL | The LinkCollectionNodes buffer is too small to hold the entire link collection array. |
The required length of the LinkCollectionNodes buffer is specified by the NumberLinkCollectionNodes member of a collection's HIDP_CAPS structure.
If HidP_GetLinkCollectionNodes returns the status value HIDP_STATUS_BUFFER_TOO_SMALL, it also sets LinkCollectionNodesLength to the length, in array elements, required to hold the link collection nodes information.
For more information, see HID Collections.