// hidsdi.h
BOOLEAN HidD_FlushQueue(
[in] HANDLE HidDeviceObject
);
View the official Windows Driver Kit DDI referenceNo description available.
The HidD_FlushQueue routine deletes all pending input reports in a top-level collection's input queue.
HidDeviceObject [in]Specifies an open handle to the top-level collection whose input queue is flushed.
HidD_FlushQueue returns TRUE if it successfully flushes the queue. Otherwise, it returns FALSE. Use GetLastError to get extended error information.
Only user-mode applications can call HidD_FlushQueue. Kernel-mode drivers can use an IOCTL_HID_FLUSH_QUEUE request.
For more information, see HID Collections.