PHIDP_GETCAPS callback function (hidclass.h)
The HidP_GetCaps routine returns a top-level collection's HIDP_CAPS structure.
PHIDP_GETCAPS PhidpGetcaps;
NTSTATUS PhidpGetcaps(
[in] PHIDP_PREPARSED_DATA PreparsedData,
[out] PHIDP_CAPS Capabilities
)
{...}
[in] PreparsedData
Pointer to a top-level collection's preparsed data.
[out] Capabilities
Pointer to a caller-allocated buffer that the routine uses to return a collection's HIDP_CAPS structure.
HidP_GetCaps returns one of the following status values:
Return code | Description |
---|---|
|
The routine successfully returned the collection capability information. |
|
The specified preparsed data is invalid. |
For more information about a collection's capability, see Obtaining Collection Information.
See also HID Collections.
Requirement | Value |
---|---|
Minimum supported client | Available in Windows 2000 and later versions of Windows. |
Target Platform | Universal |
Header | hidclass.h (include Hidclass.h) |
IRQL | PASSIVE_LEVEL |
IOCTL_HID_GET_COLLECTION_DESCRIPTOR