IOCTL_HID_ACQUIRE

Unsubscribes an event handle from receiving notifications about HID class device events.

Parameters

hDevice
Handle to the HID class device.
dwIoControlCode
IOCTL_HID_ACQUIRE
lpInBuffer
Pointer to an input buffer containing a SHiddiAcquire structure.
nInBufferSize
The length of the input buffer.
lpOutBuffer
NULL
nOutBufferSize
Not used
lpBytesReturned
A count of the total bytes returned.
lpOverlapped
NULL

Remarks

The input buffer contains a SHiddiAcquire structure which indicates a device ID and whether to acquire or unacquire the device. Since acquiring the device is now performed via the IOCTL_HID_SET_FORMAT control code, the IOCTL_HID_ACQUIRE control code should only be used to unacquire a device. The HID class driver should return an INVALID_PARAMETER error if this code is used to attempt to acquire a device.