hidclass.sys: Return STATUS_INVALID_USER_BUFFER if buffer_len is 0.
[wine.git] / dlls / winebus.sys / pop_hid_macros.h
blob767c26e8ecb95c5043814db6007b73da6206ac34
1 /*
2 * HID report helper macros.
4 * Copyright 2021 RĂ©mi Bernon for CodeWeavers
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #undef Data
22 #undef Cnst
23 #undef Array
24 #undef Var
25 #undef Abs
26 #undef Rel
27 #undef NoWrap
28 #undef Wrap
29 #undef NonLin
30 #undef Lin
31 #undef NoPref
32 #undef Pref
33 #undef NoNull
34 #undef Null
35 #undef NonVol
36 #undef Vol
37 #undef Bits
38 #undef Buff
40 #undef Physical
41 #undef Application
42 #undef Logical
43 #undef Report
44 #undef NamedArray
45 #undef UsageSwitch
46 #undef UsageModifier
48 #undef SHORT_ITEM_0
49 #undef SHORT_ITEM_1
50 #undef SHORT_ITEM_2
51 #undef SHORT_ITEM_4
53 #undef LONG_ITEM
55 #undef INPUT
56 #undef OUTPUT
57 #undef FEATURE
58 #undef COLLECTION
59 #undef END_COLLECTION
61 #undef USAGE_PAGE
62 #undef LOGICAL_MINIMUM
63 #undef LOGICAL_MAXIMUM
64 #undef PHYSICAL_MINIMUM
65 #undef PHYSICAL_MAXIMUM
66 #undef UNIT_EXPONENT
67 #undef UNIT
68 #undef REPORT_SIZE
69 #undef REPORT_ID
70 #undef REPORT_COUNT
71 #undef PUSH
72 #undef POP
74 #undef USAGE
75 #undef USAGE_MINIMUM
76 #undef USAGE_MAXIMUM
77 #undef DESIGNATOR_INDEX
78 #undef DESIGNATOR_MINIMUM
79 #undef DESIGNATOR_MAXIMUM
80 #undef STRING_INDEX
81 #undef STRING_MINIMUM
82 #undef STRING_MAXIMUM
83 #undef DELIMITER