IOCTL_HID_GET_INST_DATA
Retrieves device data.
Parameters
- hDevice
- Handle to the HID class device.
- dwIoControlCode
- IOCTL_HID_GET_INST_DATA
- lpInBuffer
- Pointer to a DWORD containing the ID of a previously acquired device.
- nInBufferSize
- The length of the input buffer.
- lpOutBuffer
- Pointer to an output buffer in the format specified when the device was acquired.
- nOutBufferSize
- Length of the output buffer.
- lpBytesReturned
- A count of the total bytes returned.
- lpOverlapped
- NULL
Remarks
The input buffer contains a DWORD that is the ID of a previously acquired device. This control code should cause the device data, in the format specified when the device was acquired, to be written into the output buffer. The output buffer length should be set to the number of bytes written, that is, the lesser of the format size or the output buffer size.
^
IOCTL_HID_SET_FORMAT
Sets the format of data returned to DI from the device and acquires the device for use.
Parameters
- hDevice
- Handle to the HID class device.
- dwIoControlCode
- IOCTL_HID_SET_FORMAT
- lpInBuffer
- Pointer to an input buffer containing a SHiddiSetFormatHeader structure followed by one or more SHiddiSetFormat structures.
- nInBufferSize
- The length of the input buffer.
- lpOutBuffer
- Pointer to an output buffer containing a SHiddiSetFormatHeader structure followed by one or more SHiddiSetFormat structures. Must be equal to lpInBuffer.
- nOutBufferSize
- Length of the output buffer; must be the same as nInBufferSize.
- lpBytesReturned
- A count of the total bytes returned.
- lpOverlapped
- NULL
Remarks
The input buffer will contain as many SHiddiSetFormat structures as given by the SHiddiSetFormatHeader structure's dwCount member. Zero is a legitimate value for this member. The output buffer length should be set to zero on success.