-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
497 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#pragma once | ||
// | ||
// Macro for defining HID ioctls | ||
// | ||
#define HID_CTL_CODE(id) CTL_CODE(FILE_DEVICE_KEYBOARD, (id), METHOD_NEITHER, FILE_ANY_ACCESS) | ||
#define HID_BUFFER_CTL_CODE(id) CTL_CODE(FILE_DEVICE_KEYBOARD, (id), METHOD_BUFFERED, FILE_ANY_ACCESS) | ||
#define HID_IN_CTL_CODE(id) CTL_CODE(FILE_DEVICE_KEYBOARD, (id), METHOD_IN_DIRECT, FILE_ANY_ACCESS) | ||
#define HID_OUT_CTL_CODE(id) CTL_CODE(FILE_DEVICE_KEYBOARD, (id), METHOD_OUT_DIRECT, FILE_ANY_ACCESS) | ||
|
||
#define HID_CTL_CODE(id) CTL_CODE(FILE_DEVICE_KEYBOARD, (id), METHOD_NEITHER, FILE_ANY_ACCESS) | ||
#define HID_BUFFER_CTL_CODE(id) CTL_CODE(FILE_DEVICE_KEYBOARD, (id), METHOD_BUFFERED, FILE_ANY_ACCESS) | ||
#define HID_IN_CTL_CODE(id) CTL_CODE(FILE_DEVICE_KEYBOARD, (id), METHOD_IN_DIRECT, FILE_ANY_ACCESS) | ||
#define HID_OUT_CTL_CODE(id) CTL_CODE(FILE_DEVICE_KEYBOARD, (id), METHOD_OUT_DIRECT, FILE_ANY_ACCESS) | ||
#define IOCTL_HID_GET_DRIVER_CONFIG HID_BUFFER_CTL_CODE(100) | ||
#define IOCTL_HID_SET_DRIVER_CONFIG HID_BUFFER_CTL_CODE(101) | ||
#define IOCTL_HID_GET_POLL_FREQUENCY_MSEC HID_BUFFER_CTL_CODE(102) | ||
#define IOCTL_HID_SET_POLL_FREQUENCY_MSEC HID_BUFFER_CTL_CODE(103) | ||
#define IOCTL_GET_NUM_DEVICE_INPUT_BUFFERS HID_BUFFER_CTL_CODE(104) | ||
#define IOCTL_SET_NUM_DEVICE_INPUT_BUFFERS HID_BUFFER_CTL_CODE(105) | ||
#define IOCTL_HID_GET_COLLECTION_INFORMATION HID_BUFFER_CTL_CODE(106) | ||
#define IOCTL_HID_ENABLE_WAKE_ON_SX HID_BUFFER_CTL_CODE(107) | ||
#define IOCTL_HID_SET_S0_IDLE_TIMEOUT HID_BUFFER_CTL_CODE(108) | ||
#define IOCTL_HID_GET_COLLECTION_DESCRIPTOR HID_CTL_CODE(100) | ||
#define IOCTL_HID_FLUSH_QUEUE HID_CTL_CODE(101) | ||
#define IOCTL_HID_SET_FEATURE HID_IN_CTL_CODE(100) | ||
#define IOCTL_HID_SET_OUTPUT_REPORT HID_IN_CTL_CODE(101) | ||
#define IOCTL_HID_GET_FEATURE HID_OUT_CTL_CODE(100) | ||
#define IOCTL_GET_PHYSICAL_DESCRIPTOR HID_OUT_CTL_CODE(102) | ||
#define IOCTL_HID_GET_HARDWARE_ID HID_OUT_CTL_CODE(103) | ||
#define IOCTL_HID_GET_INPUT_REPORT HID_OUT_CTL_CODE(104) | ||
#define IOCTL_HID_GET_OUTPUT_REPORT HID_OUT_CTL_CODE(105) | ||
#define IOCTL_HID_GET_MANUFACTURER_STRING HID_OUT_CTL_CODE(110) | ||
#define IOCTL_HID_GET_PRODUCT_STRING HID_OUT_CTL_CODE(111) | ||
#define IOCTL_HID_GET_SERIALNUMBER_STRING HID_OUT_CTL_CODE(112) | ||
#define IOCTL_HID_GET_INDEXED_STRING HID_OUT_CTL_CODE(120) | ||
#define IOCTL_HID_GET_MS_GENRE_DESCRIPTOR HID_OUT_CTL_CODE(121) | ||
#define IOCTL_HID_ENABLE_SECURE_READ HID_CTL_CODE(130) | ||
#define IOCTL_HID_DISABLE_SECURE_READ HID_CTL_CODE(131) | ||
#define IOCTL_HID_DEVICERESET_NOTIFICATION HID_CTL_CODE(140) |
Oops, something went wrong.