include: Add ddk/hidclass.h.
[wine.git] / include / ddk / hidclass.h
blob81f892d19fe9e1bed03e5566f8c84c974dfa6ae2
1 /*
2 * Copyright (C) 2015 Aric Stewart
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
18 #ifndef __HIDCLASS_H
19 #define __HIDCLASS_H
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
25 DEFINE_GUID (GUID_DEVINTERFACE_HID, \
26 0x4D1E55B2L, 0xF16F, 0x11CF, 0x88, 0xCB, 0x00, 0x11, 0x11, 0x00, 0x00, 0x30);
28 #define HID_CTL_CODE(id) \
29 CTL_CODE (FILE_DEVICE_KEYBOARD, (id), METHOD_NEITHER, FILE_ANY_ACCESS)
30 #define HID_BUFFER_CTL_CODE(id) \
31 CTL_CODE (FILE_DEVICE_KEYBOARD, (id), METHOD_BUFFERED, FILE_ANY_ACCESS)
32 #define HID_IN_CTL_CODE(id) \
33 CTL_CODE (FILE_DEVICE_KEYBOARD, (id), METHOD_IN_DIRECT, FILE_ANY_ACCESS)
34 #define HID_OUT_CTL_CODE(id) \
35 CTL_CODE (FILE_DEVICE_KEYBOARD, (id), METHOD_OUT_DIRECT, FILE_ANY_ACCESS)
37 #define IOCTL_GET_PHYSICAL_DESCRIPTOR HID_OUT_CTL_CODE(102)
38 #define IOCTL_HID_FLUSH_QUEUE HID_CTL_CODE(101)
39 #define IOCTL_HID_GET_COLLECTION_DESCRIPTOR HID_CTL_CODE(100)
40 #define IOCTL_HID_GET_COLLECTION_INFORMATION HID_BUFFER_CTL_CODE(106)
41 #define IOCTL_HID_GET_FEATURE HID_OUT_CTL_CODE(100)
42 #define IOCTL_HID_GET_HARDWARE_ID HID_OUT_CTL_CODE(103)
43 #define IOCTL_HID_GET_INDEXED_STRING HID_OUT_CTL_CODE(120)
44 #define IOCTL_HID_GET_INPUT_REPORT HID_OUT_CTL_CODE(104)
45 #define IOCTL_HID_GET_MANUFACTURER_STRING HID_OUT_CTL_CODE(110)
46 #define IOCTL_GET_NUM_DEVICE_INPUT_BUFFERS HID_BUFFER_CTL_CODE(104)
47 #define IOCTL_HID_GET_POLL_FREQUENCY_MSEC HID_BUFFER_CTL_CODE(102)
48 #define IOCTL_HID_GET_PRODUCT_STRING HID_OUT_CTL_CODE(111)
49 #define IOCTL_HID_GET_SERIALNUMBER_STRING HID_OUT_CTL_CODE(112)
50 #define IOCTL_HID_SET_FEATURE HID_IN_CTL_CODE(100)
51 #define IOCTL_SET_NUM_DEVICE_INPUT_BUFFERS HID_BUFFER_CTL_CODE(105)
52 #define IOCTL_HID_SET_OUTPUT_REPORT HID_IN_CTL_CODE(101)
53 #define IOCTL_HID_SET_POLL_FREQUENCY_MSEC HID_BUFFER_CTL_CODE(103)
55 #define IOCTL_HID_GET_DRIVER_CONFIG HID_BUFFER_CTL_CODE(100)
56 #define IOCTL_HID_SET_DRIVER_CONFIG HID_BUFFER_CTL_CODE(101)
57 #define IOCTL_HID_GET_MS_GENRE_DESCRIPTOR HID_OUT_CTL_CODE(121)
59 #ifdef __cplusplus
61 #endif
63 #endif /* __HIDCLASS_H */