// hidsdi.h
BOOLEAN HidD_GetNumInputBuffers(
[in] HANDLE HidDeviceObject,
[out] PULONG NumberBuffers
);
View the official Windows Driver Kit DDI referenceNo description available.
The HidD_GetNumInputBuffers routine returns the current size, in number of reports, of the ring buffer that the HID class driver uses to queue input reports from a specified top-level collection.
HidDeviceObject [in]Specifies an open handle to a top-level collection.
NumberBuffers [out]Pointer to a caller-allocated variable that the routine uses to return the maximum number of input reports the ring buffer can hold.
HidD_GetNumInputBuffers returns TRUE if it succeeds; otherwise, it returns FALSE. Use GetLastError to get extended error information.
Only user-mode applications can call HidD_GetNumInputBuffers. Kernel-mode drivers can use the IOCTL_GET_NUM_DEVICE_INPUT_BUFFERS request.
For more information, see HID Collections.
IOCTL_GET_NUM_DEVICE_INPUT_BUFFERS
IOCTL_SET_NUM_DEVICE_INPUT_BUFFERS