1 | /**
|
---|
2 | * This file has no copyright assigned and is placed in the Public Domain.
|
---|
3 | * This file is part of the mingw-w64 runtime package.
|
---|
4 | * No warranty is given; refer to the file DISCLAIMER.PD within this package.
|
---|
5 | */
|
---|
6 |
|
---|
7 | import "unknwn.idl";
|
---|
8 |
|
---|
9 | cpp_quote("#include \"winapifamily.h\"")
|
---|
10 |
|
---|
11 | cpp_quote("#ifndef DIRECTINPUT_VERSION")
|
---|
12 | cpp_quote("#define DIRECTINPUT_VERSION 0x0800")
|
---|
13 | cpp_quote("#endif")
|
---|
14 |
|
---|
15 | cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
|
---|
16 |
|
---|
17 | cpp_quote("")
|
---|
18 | typedef struct DIOBJECTATTRIBUTES {
|
---|
19 | DWORD dwFlags;
|
---|
20 | WORD wUsagePage;
|
---|
21 | WORD wUsage;
|
---|
22 | } DIOBJECTATTRIBUTES, *LPDIOBJECTATTRIBUTES;
|
---|
23 | typedef const DIOBJECTATTRIBUTES *LPCDIOBJECTATTRIBUTES;
|
---|
24 |
|
---|
25 | cpp_quote("")
|
---|
26 | typedef struct DIFFOBJECTATTRIBUTES {
|
---|
27 | DWORD dwFFMaxForce;
|
---|
28 | DWORD dwFFForceResolution;
|
---|
29 | } DIFFOBJECTATTRIBUTES, *LPDIFFOBJECTATTRIBUTES;
|
---|
30 | typedef const DIFFOBJECTATTRIBUTES *LPCDIFFOBJECTATTRIBUTES;
|
---|
31 |
|
---|
32 | cpp_quote("")
|
---|
33 | typedef struct DIOBJECTCALIBRATION {
|
---|
34 | LONG lMin;
|
---|
35 | LONG lCenter;
|
---|
36 | LONG lMax;
|
---|
37 | } DIOBJECTCALIBRATION, *LPDIOBJECTCALIBRATION;
|
---|
38 | typedef const DIOBJECTCALIBRATION *LPCDIOBJECTCALIBRATION;
|
---|
39 |
|
---|
40 | cpp_quote("")
|
---|
41 | typedef struct DIPOVCALIBRATION {
|
---|
42 | LONG lMin[5];
|
---|
43 | LONG lMax[5];
|
---|
44 | } DIPOVCALIBRATION, *LPDIPOVCALIBRATION;
|
---|
45 | typedef const DIPOVCALIBRATION *LPCDIPOVCALIBRATION;
|
---|
46 |
|
---|
47 | cpp_quote("")
|
---|
48 | typedef struct DIEFFECTATTRIBUTES {
|
---|
49 | DWORD dwEffectId;
|
---|
50 | DWORD dwEffType;
|
---|
51 | DWORD dwStaticParams;
|
---|
52 | DWORD dwDynamicParams;
|
---|
53 | DWORD dwCoords;
|
---|
54 | } DIEFFECTATTRIBUTES, *LPDIEFFECTATTRIBUTES;
|
---|
55 | typedef const DIEFFECTATTRIBUTES *LPCDIEFFECTATTRIBUTES;
|
---|
56 |
|
---|
57 | cpp_quote("")
|
---|
58 | typedef struct DIFFDEVICEATTRIBUTES {
|
---|
59 | DWORD dwFlags;
|
---|
60 | DWORD dwFFSamplePeriod;
|
---|
61 | DWORD dwFFMinTimeResolution;
|
---|
62 | } DIFFDEVICEATTRIBUTES, *LPDIFFDEVICEATTRIBUTES;
|
---|
63 | typedef const DIFFDEVICEATTRIBUTES *LPCDIFFDEVICEATTRIBUTES;
|
---|
64 |
|
---|
65 | cpp_quote("")
|
---|
66 | typedef struct DIDRIVERVERSIONS {
|
---|
67 | DWORD dwSize;
|
---|
68 | DWORD dwFirmwareRevision;
|
---|
69 | DWORD dwHardwareRevision;
|
---|
70 | DWORD dwFFDriverVersion;
|
---|
71 | } DIDRIVERVERSIONS, *LPDIDRIVERVERSIONS;
|
---|
72 | typedef const DIDRIVERVERSIONS *LPCDIDRIVERVERSIONS;
|
---|
73 |
|
---|
74 | cpp_quote("")
|
---|
75 | typedef struct DIDEVICESTATE {
|
---|
76 | DWORD dwSize;
|
---|
77 | DWORD dwState;
|
---|
78 | DWORD dwLoad;
|
---|
79 | } DIDEVICESTATE, *LPDIDEVICESTATE;
|
---|
80 |
|
---|
81 | cpp_quote("#define DEV_STS_EFFECT_RUNNING DIEGES_PLAYING")
|
---|
82 |
|
---|
83 | cpp_quote("#ifndef DIJ_RINGZERO")
|
---|
84 |
|
---|
85 | cpp_quote("")
|
---|
86 | typedef struct DIHIDFFINITINFO {
|
---|
87 | DWORD dwSize;
|
---|
88 | LPWSTR pwszDeviceInterface;
|
---|
89 | GUID GuidInstance;
|
---|
90 | } DIHIDFFINITINFO, *LPDIHIDFFINITINFO;
|
---|
91 |
|
---|
92 | /* for this idl only, already defined in dinput.h */
|
---|
93 | cpp_quote("#if 0")
|
---|
94 | typedef struct DIEFFESCAPE DIEFFESCAPE, *LPDIEFFESCAPE;
|
---|
95 | typedef struct DIEFFECT DIEFFECT, *LPDIEFFECT;
|
---|
96 | typedef const DIEFFECT *LPCDIEFFECT;
|
---|
97 | cpp_quote("#endif")
|
---|
98 |
|
---|
99 | cpp_quote("")
|
---|
100 | [object, uuid(02538130-898f-11d0-9ad0-00a0c9a06e35), local]
|
---|
101 | interface IDirectInputEffectDriver : IUnknown {
|
---|
102 | HRESULT DeviceID (DWORD, DWORD, DWORD, DWORD, LPVOID);
|
---|
103 | HRESULT GetVersions (LPDIDRIVERVERSIONS);
|
---|
104 | HRESULT Escape (DWORD, DWORD, LPDIEFFESCAPE);
|
---|
105 | HRESULT SetGain (DWORD, DWORD);
|
---|
106 | HRESULT SendForceFeedbackCommand (DWORD, DWORD);
|
---|
107 | HRESULT GetForceFeedbackState (DWORD, LPDIDEVICESTATE);
|
---|
108 | HRESULT DownloadEffect (DWORD, DWORD, LPDWORD, LPCDIEFFECT, DWORD);
|
---|
109 | HRESULT DestroyEffect (DWORD, DWORD);
|
---|
110 | HRESULT StartEffect (DWORD, DWORD, DWORD, DWORD);
|
---|
111 | HRESULT StopEffect (DWORD, DWORD);
|
---|
112 | HRESULT GetEffectStatus (DWORD, DWORD, LPDWORD);
|
---|
113 | }
|
---|
114 |
|
---|
115 | cpp_quote("#endif /* DIJ_RINGZERO */")
|
---|
116 |
|
---|
117 | cpp_quote("#ifndef JOY_HW_NONE")
|
---|
118 |
|
---|
119 | cpp_quote("#define JOY_HW_NONE 0")
|
---|
120 | cpp_quote("#define JOY_HW_CUSTOM 1")
|
---|
121 | cpp_quote("#define JOY_HW_2A_2B_GENERIC 2")
|
---|
122 | cpp_quote("#define JOY_HW_2A_4B_GENERIC 3")
|
---|
123 | cpp_quote("#define JOY_HW_2B_GAMEPAD 4")
|
---|
124 | cpp_quote("#define JOY_HW_2B_FLIGHTYOKE 5")
|
---|
125 | cpp_quote("#define JOY_HW_2B_FLIGHTYOKETHROTTLE 6")
|
---|
126 | cpp_quote("#define JOY_HW_3A_2B_GENERIC 7")
|
---|
127 | cpp_quote("#define JOY_HW_3A_4B_GENERIC 8")
|
---|
128 | cpp_quote("#define JOY_HW_4B_GAMEPAD 9")
|
---|
129 | cpp_quote("#define JOY_HW_4B_FLIGHTYOKE 10")
|
---|
130 | cpp_quote("#define JOY_HW_4B_FLIGHTYOKETHROTTLE 11")
|
---|
131 | cpp_quote("#define JOY_HW_TWO_2A_2B_WITH_Y 12")
|
---|
132 | cpp_quote("#define JOY_HW_LASTENTRY 13")
|
---|
133 |
|
---|
134 | cpp_quote("#define JOY_ISCAL_XY 0x00000001")
|
---|
135 | cpp_quote("#define JOY_ISCAL_Z 0x00000002")
|
---|
136 | cpp_quote("#define JOY_ISCAL_R 0x00000004")
|
---|
137 | cpp_quote("#define JOY_ISCAL_U 0x00000008")
|
---|
138 | cpp_quote("#define JOY_ISCAL_V 0x00000010")
|
---|
139 | cpp_quote("#define JOY_ISCAL_POV 0x00000020")
|
---|
140 |
|
---|
141 | const USHORT JOY_POVVAL_FORWARD = 0;
|
---|
142 | const USHORT JOY_POVVAL_BACKWARD = 1;
|
---|
143 | const USHORT JOY_POVVAL_LEFT = 2;
|
---|
144 | const USHORT JOY_POVVAL_RIGHT = 3;
|
---|
145 | const USHORT JOY_POV_NUMDIRS = 4;
|
---|
146 |
|
---|
147 | cpp_quote("#define JOY_HWS_HASZ 0x00000001")
|
---|
148 | cpp_quote("#define JOY_HWS_HASPOV 0x00000002")
|
---|
149 | cpp_quote("#define JOY_HWS_POVISBUTTONCOMBOS 0x00000004")
|
---|
150 | cpp_quote("#define JOY_HWS_POVISPOLL 0x00000008")
|
---|
151 | cpp_quote("#define JOY_HWS_ISYOKE 0x00000010")
|
---|
152 | cpp_quote("#define JOY_HWS_ISGAMEPAD 0x00000020")
|
---|
153 | cpp_quote("#define JOY_HWS_ISCARCTRL 0x00000040")
|
---|
154 |
|
---|
155 | cpp_quote("#define JOY_HWS_XISJ1Y 0x00000080")
|
---|
156 | cpp_quote("#define JOY_HWS_XISJ2X 0x00000100")
|
---|
157 | cpp_quote("#define JOY_HWS_XISJ2Y 0x00000200")
|
---|
158 |
|
---|
159 | cpp_quote("#define JOY_HWS_YISJ1X 0x00000400")
|
---|
160 | cpp_quote("#define JOY_HWS_YISJ2X 0x00000800")
|
---|
161 | cpp_quote("#define JOY_HWS_YISJ2Y 0x00001000")
|
---|
162 |
|
---|
163 | cpp_quote("#define JOY_HWS_ZISJ1X 0x00002000")
|
---|
164 | cpp_quote("#define JOY_HWS_ZISJ1Y 0x00004000")
|
---|
165 | cpp_quote("#define JOY_HWS_ZISJ2X 0x00008000")
|
---|
166 |
|
---|
167 | cpp_quote("#define JOY_HWS_POVISJ1X 0x00010000")
|
---|
168 | cpp_quote("#define JOY_HWS_POVISJ1Y 0x00020000")
|
---|
169 | cpp_quote("#define JOY_HWS_POVISJ2X 0x00040000")
|
---|
170 |
|
---|
171 | cpp_quote("#define JOY_HWS_HASR 0x00080000")
|
---|
172 | cpp_quote("#define JOY_HWS_RISJ1X 0x00100000")
|
---|
173 | cpp_quote("#define JOY_HWS_RISJ1Y 0x00200000")
|
---|
174 | cpp_quote("#define JOY_HWS_RISJ2Y 0x00400000")
|
---|
175 |
|
---|
176 | cpp_quote("#define JOY_HWS_HASU 0x00800000")
|
---|
177 | cpp_quote("#define JOY_HWS_HASV 0x01000000")
|
---|
178 |
|
---|
179 | cpp_quote("#define JOY_US_HASRUDDER 0x00000001")
|
---|
180 | cpp_quote("#define JOY_US_PRESENT 0x00000002")
|
---|
181 | cpp_quote("#define JOY_US_ISOEM 0x00000004")
|
---|
182 |
|
---|
183 | cpp_quote("#define JOY_US_RESERVED 0x80000000")
|
---|
184 |
|
---|
185 | cpp_quote("#define JOYTYPE_ZEROGAMEENUMOEMDATA 0x00000001")
|
---|
186 | cpp_quote("#define JOYTYPE_NOAUTODETECTGAMEPORT 0x00000002")
|
---|
187 | cpp_quote("#define JOYTYPE_NOHIDDIRECT 0x00000004")
|
---|
188 | cpp_quote("#define JOYTYPE_ANALOGCOMPAT 0x00000008")
|
---|
189 | cpp_quote("#define JOYTYPE_DEFAULTPROPSHEET 0x80000000")
|
---|
190 |
|
---|
191 | cpp_quote("#define JOYTYPE_DEVICEHIDE 0x00010000")
|
---|
192 | cpp_quote("#define JOYTYPE_MOUSEHIDE 0x00020000")
|
---|
193 | cpp_quote("#define JOYTYPE_KEYBHIDE 0x00040000")
|
---|
194 | cpp_quote("#define JOYTYPE_GAMEHIDE 0x00080000")
|
---|
195 | cpp_quote("#define JOYTYPE_HIDEACTIVE 0x00100000")
|
---|
196 | cpp_quote("#define JOYTYPE_INFOMASK 0x00E00000")
|
---|
197 | cpp_quote("#define JOYTYPE_INFODEFAULT 0x00000000")
|
---|
198 | cpp_quote("#define JOYTYPE_INFOYYPEDALS 0x00200000")
|
---|
199 | cpp_quote("#define JOYTYPE_INFOZYPEDALS 0x00400000")
|
---|
200 | cpp_quote("#define JOYTYPE_INFOYRPEDALS 0x00600000")
|
---|
201 | cpp_quote("#define JOYTYPE_INFOZRPEDALS 0x00800000")
|
---|
202 | cpp_quote("#define JOYTYPE_INFOZISSLIDER 0x00200000")
|
---|
203 | cpp_quote("#define JOYTYPE_INFOZISZ 0x00400000")
|
---|
204 | cpp_quote("#define JOYTYPE_ENABLEINPUTREPORT 0x01000000")
|
---|
205 |
|
---|
206 | cpp_quote("")
|
---|
207 | typedef struct joypos_tag {
|
---|
208 | DWORD dwX;
|
---|
209 | DWORD dwY;
|
---|
210 | DWORD dwZ;
|
---|
211 | DWORD dwR;
|
---|
212 | DWORD dwU;
|
---|
213 | DWORD dwV;
|
---|
214 | } JOYPOS, *LPJOYPOS;
|
---|
215 |
|
---|
216 | cpp_quote("")
|
---|
217 | typedef struct joyrange_tag {
|
---|
218 | JOYPOS jpMin;
|
---|
219 | JOYPOS jpMax;
|
---|
220 | JOYPOS jpCenter;
|
---|
221 | } JOYRANGE, *LPJOYRANGE;
|
---|
222 |
|
---|
223 | cpp_quote("")
|
---|
224 | typedef struct joyreguservalues_tag {
|
---|
225 | DWORD dwTimeOut;
|
---|
226 | JOYRANGE jrvRanges;
|
---|
227 | JOYPOS jpDeadZone;
|
---|
228 | } JOYREGUSERVALUES, *LPJOYREGUSERVALUES;
|
---|
229 |
|
---|
230 | cpp_quote("")
|
---|
231 | typedef struct joyreghwsettings_tag {
|
---|
232 | DWORD dwFlags;
|
---|
233 | DWORD dwNumButtons;
|
---|
234 | } JOYREGHWSETTINGS, *LPJOYHWSETTINGS;
|
---|
235 |
|
---|
236 | cpp_quote("")
|
---|
237 | typedef struct joyreghwvalues_tag {
|
---|
238 | JOYRANGE jrvHardware;
|
---|
239 | DWORD dwPOVValues[JOY_POV_NUMDIRS];
|
---|
240 | DWORD dwCalFlags;
|
---|
241 | } JOYREGHWVALUES, *LPJOYREGHWVALUES;
|
---|
242 |
|
---|
243 | cpp_quote("")
|
---|
244 | typedef struct joyreghwconfig_tag {
|
---|
245 | JOYREGHWSETTINGS hws;
|
---|
246 | DWORD dwUsageSettings;
|
---|
247 | JOYREGHWVALUES hwv;
|
---|
248 | DWORD dwType;
|
---|
249 | DWORD dwReserved;
|
---|
250 | } JOYREGHWCONFIG, *LPJOYREGHWCONFIG;
|
---|
251 |
|
---|
252 | cpp_quote("")
|
---|
253 | typedef struct joycalibrate_tag {
|
---|
254 | UINT wXbase;
|
---|
255 | UINT wXdelta;
|
---|
256 | UINT wYbase;
|
---|
257 | UINT wYdelta;
|
---|
258 | UINT wZbase;
|
---|
259 | UINT wZdelta;
|
---|
260 | } JOYCALIBRATE, *LPJOYCALIBRATE;
|
---|
261 |
|
---|
262 | cpp_quote("#endif /* JOY_HW_NONE */")
|
---|
263 |
|
---|
264 | cpp_quote("#ifndef DIJ_RINGZERO")
|
---|
265 |
|
---|
266 | const USHORT MAX_JOYSTRING = 256;
|
---|
267 | cpp_quote("typedef WINBOOL (WINAPI *LPDIJOYTYPECALLBACK)(LPCWSTR, LPVOID);")
|
---|
268 |
|
---|
269 | /* for this idl only */
|
---|
270 | cpp_quote("#if 0")
|
---|
271 | const USHORT MAX_JOYSTICKOEMVXDNAME = 260;
|
---|
272 | cpp_quote("#endif")
|
---|
273 |
|
---|
274 | cpp_quote("#ifndef MAX_JOYSTICKOEMVXDNAME")
|
---|
275 | cpp_quote("#define MAX_JOYSTICKOEMVXDNAME 260")
|
---|
276 | cpp_quote("#endif")
|
---|
277 |
|
---|
278 | cpp_quote("#define DITC_REGHWSETTINGS 0x00000001")
|
---|
279 | cpp_quote("#define DITC_CLSIDCONFIG 0x00000002")
|
---|
280 | cpp_quote("#define DITC_DISPLAYNAME 0x00000004")
|
---|
281 | cpp_quote("#define DITC_CALLOUT 0x00000008")
|
---|
282 | cpp_quote("#define DITC_HARDWAREID 0x00000010")
|
---|
283 | cpp_quote("#define DITC_FLAGS1 0x00000020")
|
---|
284 | cpp_quote("#define DITC_FLAGS2 0x00000040")
|
---|
285 | cpp_quote("#define DITC_MAPFILE 0x00000080")
|
---|
286 |
|
---|
287 | cpp_quote("")
|
---|
288 | typedef struct DIJOYTYPEINFO_DX5 {
|
---|
289 | DWORD dwSize;
|
---|
290 | JOYREGHWSETTINGS hws;
|
---|
291 | CLSID clsidConfig;
|
---|
292 | WCHAR wszDisplayName[MAX_JOYSTRING];
|
---|
293 | WCHAR wszCallout[MAX_JOYSTICKOEMVXDNAME];
|
---|
294 | } DIJOYTYPEINFO_DX5, *LPDIJOYTYPEINFO_DX5;
|
---|
295 | typedef const DIJOYTYPEINFO_DX5 *LPCDIJOYTYPEINFO_DX5;
|
---|
296 |
|
---|
297 | cpp_quote("")
|
---|
298 | typedef struct DIJOYTYPEINFO_DX6 {
|
---|
299 | DWORD dwSize;
|
---|
300 | JOYREGHWSETTINGS hws;
|
---|
301 | CLSID clsidConfig;
|
---|
302 | WCHAR wszDisplayName[MAX_JOYSTRING];
|
---|
303 | WCHAR wszCallout[MAX_JOYSTICKOEMVXDNAME];
|
---|
304 | WCHAR wszHardwareId[MAX_JOYSTRING];
|
---|
305 | DWORD dwFlags1;
|
---|
306 | } DIJOYTYPEINFO_DX6, *LPDIJOYTYPEINFO_DX6;
|
---|
307 | typedef const DIJOYTYPEINFO_DX6 *LPCDIJOYTYPEINFO_DX6;
|
---|
308 |
|
---|
309 | cpp_quote("")
|
---|
310 | typedef struct DIJOYTYPEINFO {
|
---|
311 | DWORD dwSize;
|
---|
312 | JOYREGHWSETTINGS hws;
|
---|
313 | CLSID clsidConfig;
|
---|
314 | WCHAR wszDisplayName[MAX_JOYSTRING];
|
---|
315 | WCHAR wszCallout[MAX_JOYSTICKOEMVXDNAME];
|
---|
316 | WCHAR wszHardwareId[MAX_JOYSTRING];
|
---|
317 | DWORD dwFlags1;
|
---|
318 | DWORD dwFlags2;
|
---|
319 | WCHAR wszMapFile[MAX_JOYSTRING];
|
---|
320 | } DIJOYTYPEINFO, *LPDIJOYTYPEINFO;
|
---|
321 | typedef const DIJOYTYPEINFO *LPCDIJOYTYPEINFO;
|
---|
322 |
|
---|
323 | cpp_quote("#define DIJC_GUIDINSTANCE 0x00000001")
|
---|
324 | cpp_quote("#define DIJC_REGHWCONFIGTYPE 0x00000002")
|
---|
325 | cpp_quote("#define DIJC_GAIN 0x00000004")
|
---|
326 | cpp_quote("#define DIJC_CALLOUT 0x00000008")
|
---|
327 | cpp_quote("#define DIJC_WDMGAMEPORT 0x00000010")
|
---|
328 |
|
---|
329 | cpp_quote("")
|
---|
330 | typedef struct DIJOYCONFIG_DX5 {
|
---|
331 | DWORD dwSize;
|
---|
332 | GUID guidInstance;
|
---|
333 | JOYREGHWCONFIG hwc;
|
---|
334 | DWORD dwGain;
|
---|
335 | WCHAR wszType[MAX_JOYSTRING];
|
---|
336 | WCHAR wszCallout[MAX_JOYSTRING];
|
---|
337 | } DIJOYCONFIG_DX5, *LPDIJOYCONFIG_DX5;
|
---|
338 | typedef const DIJOYCONFIG_DX5 *LPCDIJOYCONFIG_DX5;
|
---|
339 |
|
---|
340 | cpp_quote("")
|
---|
341 | typedef struct DIJOYCONFIG {
|
---|
342 | DWORD dwSize;
|
---|
343 | GUID guidInstance;
|
---|
344 | JOYREGHWCONFIG hwc;
|
---|
345 | DWORD dwGain;
|
---|
346 | WCHAR wszType[MAX_JOYSTRING];
|
---|
347 | WCHAR wszCallout[MAX_JOYSTRING];
|
---|
348 | GUID guidGameport;
|
---|
349 | } DIJOYCONFIG, *LPDIJOYCONFIG;
|
---|
350 | typedef const DIJOYCONFIG *LPCDIJOYCONFIG;
|
---|
351 |
|
---|
352 | cpp_quote("#define DIJU_USERVALUES 0x00000001")
|
---|
353 | cpp_quote("#define DIJU_GLOBALDRIVER 0x00000002")
|
---|
354 | cpp_quote("#define DIJU_GAMEPORTEMULATOR 0x00000004")
|
---|
355 |
|
---|
356 | cpp_quote("")
|
---|
357 | typedef struct DIJOYUSERVALUES {
|
---|
358 | DWORD dwSize;
|
---|
359 | JOYREGUSERVALUES ruv;
|
---|
360 | WCHAR wszGlobalDriver[MAX_JOYSTRING];
|
---|
361 | WCHAR wszGameportEmulator[MAX_JOYSTRING];
|
---|
362 | } DIJOYUSERVALUES, *LPDIJOYUSERVALUES;
|
---|
363 | typedef const DIJOYUSERVALUES *LPCDIJOYUSERVALUES;
|
---|
364 |
|
---|
365 | cpp_quote("DEFINE_GUID(GUID_KeyboardClass, 0x4d36e96b,0xe325,0x11ce,0xbf,0xc1,0x08,0x00,0x2b,0xe1,0x03,0x18);")
|
---|
366 | cpp_quote("DEFINE_GUID(GUID_MediaClass, 0x4d36e96c,0xe325,0x11ce,0xbf,0xc1,0x08,0x00,0x2b,0xe1,0x03,0x18);")
|
---|
367 | cpp_quote("DEFINE_GUID(GUID_MouseClass, 0x4d36e96f,0xe325,0x11ce,0xbf,0xc1,0x08,0x00,0x2b,0xe1,0x03,0x18);")
|
---|
368 | cpp_quote("DEFINE_GUID(GUID_HIDClass, 0x745a17a0,0x74d3,0x11d0,0xb6,0xfe,0x00,0xa0,0xc9,0x0f,0x57,0xda);")
|
---|
369 |
|
---|
370 | cpp_quote("")
|
---|
371 | [object, uuid(1de12ab1-c9f5-11cf-bfc7-444553540000), local]
|
---|
372 | interface IDirectInputJoyConfig : IUnknown {
|
---|
373 | HRESULT Acquire ();
|
---|
374 | HRESULT Unacquire ();
|
---|
375 | HRESULT SetCooperativeLevel (HWND, DWORD);
|
---|
376 | HRESULT SendNotify ();
|
---|
377 | HRESULT EnumTypes (LPVOID, LPVOID);
|
---|
378 | HRESULT GetTypeInfo (LPCWSTR, LPDIJOYTYPEINFO, DWORD);
|
---|
379 | HRESULT SetTypeInfo (LPCWSTR, LPCDIJOYTYPEINFO, DWORD);
|
---|
380 | HRESULT DeleteType (LPCWSTR);
|
---|
381 | HRESULT GetConfig (UINT, LPDIJOYCONFIG, DWORD);
|
---|
382 | HRESULT SetConfig (UINT, LPCDIJOYCONFIG, DWORD);
|
---|
383 | HRESULT DeleteConfig (UINT);
|
---|
384 | HRESULT GetUserValues (LPDIJOYUSERVALUES, DWORD);
|
---|
385 | HRESULT SetUserValues (LPCDIJOYUSERVALUES, DWORD);
|
---|
386 | HRESULT AddNewHardware (HWND, REFGUID);
|
---|
387 | HRESULT OpenTypeKey (LPCWSTR, DWORD, HKEY*);
|
---|
388 | HRESULT OpenConfigKey (UINT, DWORD, HKEY*);
|
---|
389 | }
|
---|
390 |
|
---|
391 | cpp_quote("")
|
---|
392 | [object, uuid(eb0d7dfa-1990-4f27-b4d6-edf2eec4a44c), local]
|
---|
393 | interface IDirectInputJoyConfig8 : IUnknown {
|
---|
394 | HRESULT Acquire ();
|
---|
395 | HRESULT Unacquire ();
|
---|
396 | HRESULT SetCooperativeLevel (HWND, DWORD);
|
---|
397 | HRESULT SendNotify ();
|
---|
398 | HRESULT EnumTypes (LPVOID, LPVOID);
|
---|
399 | HRESULT GetTypeInfo (LPCWSTR, LPDIJOYTYPEINFO, DWORD);
|
---|
400 | HRESULT SetTypeInfo (LPCWSTR, LPCDIJOYTYPEINFO, DWORD, LPWSTR);
|
---|
401 | HRESULT DeleteType (LPCWSTR);
|
---|
402 | HRESULT GetConfig (UINT, LPDIJOYCONFIG, DWORD);
|
---|
403 | HRESULT SetConfig (UINT, LPCDIJOYCONFIG, DWORD);
|
---|
404 | HRESULT DeleteConfig (UINT);
|
---|
405 | HRESULT GetUserValues (LPDIJOYUSERVALUES, DWORD);
|
---|
406 | HRESULT SetUserValues (LPCDIJOYUSERVALUES, DWORD);
|
---|
407 | HRESULT AddNewHardware (HWND, REFGUID);
|
---|
408 | HRESULT OpenTypeKey (LPCWSTR, DWORD, HKEY*);
|
---|
409 | HRESULT OpenAppStatusKey (HKEY*);
|
---|
410 | }
|
---|
411 |
|
---|
412 | cpp_quote("#endif /* DIJ_RINGZERO */")
|
---|
413 |
|
---|
414 | cpp_quote("#define DIRECTINPUT_NOTIFICATION_MSGSTRINGA \"DIRECTINPUT_NOTIFICATION_MSGSTRING\"")
|
---|
415 | cpp_quote("#define DIRECTINPUT_NOTIFICATION_MSGSTRINGW L\"DIRECTINPUT_NOTIFICATION_MSGSTRING\"")
|
---|
416 | cpp_quote("#define DIRECTINPUT_NOTIFICATION_MSGSTRING __MINGW_NAME_AW(DIRECTINPUT_NOTIFICATION_MSGSTRING)")
|
---|
417 |
|
---|
418 | cpp_quote("#define DIMSGWP_NEWAPPSTART 0x00000001")
|
---|
419 | cpp_quote("#define DIMSGWP_DX8APPSTART 0x00000002")
|
---|
420 | cpp_quote("#define DIMSGWP_DX8MAPPERAPPSTART 0x00000003")
|
---|
421 |
|
---|
422 | cpp_quote("#define DIAPPIDFLAG_NOTIME 0x00000001")
|
---|
423 | cpp_quote("#define DIAPPIDFLAG_NOSIZE 0x00000002")
|
---|
424 |
|
---|
425 | cpp_quote("#define DIRECTINPUT_REGSTR_VAL_APPIDFLAGA \"AppIdFlag\"")
|
---|
426 | cpp_quote("#define DIRECTINPUT_REGSTR_KEY_LASTAPPA \"MostRecentApplication\"")
|
---|
427 | cpp_quote("#define DIRECTINPUT_REGSTR_KEY_LASTMAPAPPA \"MostRecentMapperApplication\"")
|
---|
428 | cpp_quote("#define DIRECTINPUT_REGSTR_VAL_VERSIONA \"Version\"")
|
---|
429 | cpp_quote("#define DIRECTINPUT_REGSTR_VAL_NAMEA \"Name\"")
|
---|
430 | cpp_quote("#define DIRECTINPUT_REGSTR_VAL_IDA \"Id\"")
|
---|
431 | cpp_quote("#define DIRECTINPUT_REGSTR_VAL_MAPPERA \"UsesMapper\"")
|
---|
432 | cpp_quote("#define DIRECTINPUT_REGSTR_VAL_LASTSTARTA \"MostRecentStart\"")
|
---|
433 |
|
---|
434 | cpp_quote("#define DIRECTINPUT_REGSTR_VAL_APPIDFLAGW L\"AppIdFlag\"")
|
---|
435 | cpp_quote("#define DIRECTINPUT_REGSTR_KEY_LASTAPPW L\"MostRecentApplication\"")
|
---|
436 | cpp_quote("#define DIRECTINPUT_REGSTR_KEY_LASTMAPAPPW L\"MostRecentMapperApplication\"")
|
---|
437 | cpp_quote("#define DIRECTINPUT_REGSTR_VAL_VERSIONW L\"Version\"")
|
---|
438 | cpp_quote("#define DIRECTINPUT_REGSTR_VAL_NAMEW L\"Name\"")
|
---|
439 | cpp_quote("#define DIRECTINPUT_REGSTR_VAL_IDW L\"Id\"")
|
---|
440 | cpp_quote("#define DIRECTINPUT_REGSTR_VAL_MAPPERW L\"UsesMapper\"")
|
---|
441 | cpp_quote("#define DIRECTINPUT_REGSTR_VAL_LASTSTARTW L\"MostRecentStart\"")
|
---|
442 |
|
---|
443 | cpp_quote("#define DIRECTINPUT_REGSTR_VAL_APPIDFLAG __MINGW_NAME_AW(DIRECTINPUT_REGSTR_VAL_APPIDFLAG)")
|
---|
444 | cpp_quote("#define DIRECTINPUT_REGSTR_KEY_LASTAPP __MINGW_NAME_AW(DIRECTINPUT_REGSTR_KEY_LASTAPP)")
|
---|
445 | cpp_quote("#define DIRECTINPUT_REGSTR_KEY_LASTMAPAPP __MINGW_NAME_AW(DIRECTINPUT_REGSTR_KEY_LASTMAPAPP)")
|
---|
446 | cpp_quote("#define DIRECTINPUT_REGSTR_VAL_VERSION __MINGW_NAME_AW(DIRECTINPUT_REGSTR_VAL_VERSION)")
|
---|
447 | cpp_quote("#define DIRECTINPUT_REGSTR_VAL_NAME __MINGW_NAME_AW(DIRECTINPUT_REGSTR_VAL_NAME)")
|
---|
448 | cpp_quote("#define DIRECTINPUT_REGSTR_VAL_ID __MINGW_NAME_AW(DIRECTINPUT_REGSTR_VAL_ID)")
|
---|
449 | cpp_quote("#define DIRECTINPUT_REGSTR_VAL_MAPPER __MINGW_NAME_AW(DIRECTINPUT_REGSTR_VAL_MAPPER)")
|
---|
450 | cpp_quote("#define DIRECTINPUT_REGSTR_VAL_LASTSTART __MINGW_NAME_AW(DIRECTINPUT_REGSTR_VAL_LASTSTART)")
|
---|
451 |
|
---|
452 | cpp_quote("#define DIERR_NOMOREITEMS MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_NO_MORE_ITEMS)")
|
---|
453 |
|
---|
454 | cpp_quote("#define DIERR_DRIVERFIRST __MSABI_LONG(0x80040300)")
|
---|
455 | cpp_quote("#define DIERR_DRIVERLAST __MSABI_LONG(0x800403FF)")
|
---|
456 | cpp_quote("#define DIERR_INVALIDCLASSINSTALLER __MSABI_LONG(0x80040400)")
|
---|
457 | cpp_quote("#define DIERR_CANCELLED __MSABI_LONG(0x80040401)")
|
---|
458 | cpp_quote("#define DIERR_BADINF __MSABI_LONG(0x80040402)")
|
---|
459 | cpp_quote("#define DIDIFT_DELETE __MSABI_LONG(0x01000000)")
|
---|
460 |
|
---|
461 | cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */")
|
---|