Skip to content

Commit

Permalink
Work around missing HID stuff and IOCTLS
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrianVovk committed Aug 1, 2024
1 parent b9da479 commit 0e64d47
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions crates/wdk-sys/src/input.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,23 @@ typedef union _KIDTENTRY64
#include <wdf.h>

#endif // defined(KMDF_VERSION_MAJOR) || defined(UMDF_VERSION_MAJOR)

#include <..\km\hidport.h>
#include <hidclass.h>
#include <winioctl.h>

const ULONG FIXED_IOCTL_HID_GET_DEVICE_DESCRIPTOR = IOCTL_HID_GET_DEVICE_DESCRIPTOR;
const ULONG FIXED_IOCTL_HID_GET_DEVICE_ATTRIBUTES = IOCTL_HID_GET_DEVICE_ATTRIBUTES;
const ULONG FIXED_IOCTL_HID_GET_REPORT_DESCRIPTOR = IOCTL_HID_GET_REPORT_DESCRIPTOR;
const ULONG FIXED_IOCTL_HID_READ_REPORT = IOCTL_HID_READ_REPORT;
const ULONG FIXED_IOCTL_HID_WRITE_REPORT = IOCTL_HID_WRITE_REPORT;
const ULONG FIXED_IOCTL_UMDF_HID_GET_FEATURE = IOCTL_UMDF_HID_GET_FEATURE;
const ULONG FIXED_IOCTL_UMDF_HID_SET_FEATURE = IOCTL_UMDF_HID_SET_FEATURE;
const ULONG FIXED_IOCTL_UMDF_HID_GET_INPUT_REPORT = IOCTL_UMDF_HID_GET_INPUT_REPORT;
const ULONG FIXED_IOCTL_UMDF_HID_SET_OUTPUT_REPORT = IOCTL_UMDF_HID_SET_OUTPUT_REPORT;
const ULONG FIXED_IOCTL_HID_GET_STRING = IOCTL_HID_GET_STRING;
const ULONG FIXED_IOCTL_HID_GET_INDEXED_STRING = IOCTL_HID_GET_INDEXED_STRING;
const ULONG FIXED_IOCTL_HID_SEND_IDLE_NOTIFICATION_REQUEST = IOCTL_HID_SEND_IDLE_NOTIFICATION_REQUEST;
const ULONG FIXED_IOCTL_HID_ACTIVATE_DEVICE = IOCTL_HID_ACTIVATE_DEVICE;
const ULONG FIXED_IOCTL_HID_DEACTIVATE_DEVICE = IOCTL_HID_DEACTIVATE_DEVICE;
const ULONG FIXED_IOCTL_GET_PHYSICAL_DESCRIPTOR = IOCTL_GET_PHYSICAL_DESCRIPTOR;

0 comments on commit 0e64d47

Please sign in to comment.