source: Daodan/MSYS2/mingw32/i686-w64-mingw32/include/dinputd.idl@ 1170

Last change on this file since 1170 was 1166, checked in by rossy, 3 years ago

Daodan: Replace MinGW build env with an up-to-date MSYS2 env

File size: 15.7 KB
Line 
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
7import "unknwn.idl";
8
9cpp_quote("#include \"winapifamily.h\"")
10
11cpp_quote("#ifndef DIRECTINPUT_VERSION")
12cpp_quote("#define DIRECTINPUT_VERSION 0x0800")
13cpp_quote("#endif")
14
15cpp_quote("#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)")
16
17cpp_quote("")
18typedef struct DIOBJECTATTRIBUTES {
19 DWORD dwFlags;
20 WORD wUsagePage;
21 WORD wUsage;
22} DIOBJECTATTRIBUTES, *LPDIOBJECTATTRIBUTES;
23typedef const DIOBJECTATTRIBUTES *LPCDIOBJECTATTRIBUTES;
24
25cpp_quote("")
26typedef struct DIFFOBJECTATTRIBUTES {
27 DWORD dwFFMaxForce;
28 DWORD dwFFForceResolution;
29} DIFFOBJECTATTRIBUTES, *LPDIFFOBJECTATTRIBUTES;
30typedef const DIFFOBJECTATTRIBUTES *LPCDIFFOBJECTATTRIBUTES;
31
32cpp_quote("")
33typedef struct DIOBJECTCALIBRATION {
34 LONG lMin;
35 LONG lCenter;
36 LONG lMax;
37} DIOBJECTCALIBRATION, *LPDIOBJECTCALIBRATION;
38typedef const DIOBJECTCALIBRATION *LPCDIOBJECTCALIBRATION;
39
40cpp_quote("")
41typedef struct DIPOVCALIBRATION {
42 LONG lMin[5];
43 LONG lMax[5];
44} DIPOVCALIBRATION, *LPDIPOVCALIBRATION;
45typedef const DIPOVCALIBRATION *LPCDIPOVCALIBRATION;
46
47cpp_quote("")
48typedef struct DIEFFECTATTRIBUTES {
49 DWORD dwEffectId;
50 DWORD dwEffType;
51 DWORD dwStaticParams;
52 DWORD dwDynamicParams;
53 DWORD dwCoords;
54} DIEFFECTATTRIBUTES, *LPDIEFFECTATTRIBUTES;
55typedef const DIEFFECTATTRIBUTES *LPCDIEFFECTATTRIBUTES;
56
57cpp_quote("")
58typedef struct DIFFDEVICEATTRIBUTES {
59 DWORD dwFlags;
60 DWORD dwFFSamplePeriod;
61 DWORD dwFFMinTimeResolution;
62} DIFFDEVICEATTRIBUTES, *LPDIFFDEVICEATTRIBUTES;
63typedef const DIFFDEVICEATTRIBUTES *LPCDIFFDEVICEATTRIBUTES;
64
65cpp_quote("")
66typedef struct DIDRIVERVERSIONS {
67 DWORD dwSize;
68 DWORD dwFirmwareRevision;
69 DWORD dwHardwareRevision;
70 DWORD dwFFDriverVersion;
71} DIDRIVERVERSIONS, *LPDIDRIVERVERSIONS;
72typedef const DIDRIVERVERSIONS *LPCDIDRIVERVERSIONS;
73
74cpp_quote("")
75typedef struct DIDEVICESTATE {
76 DWORD dwSize;
77 DWORD dwState;
78 DWORD dwLoad;
79} DIDEVICESTATE, *LPDIDEVICESTATE;
80
81cpp_quote("#define DEV_STS_EFFECT_RUNNING DIEGES_PLAYING")
82
83cpp_quote("#ifndef DIJ_RINGZERO")
84
85cpp_quote("")
86typedef 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 */
93cpp_quote("#if 0")
94typedef struct DIEFFESCAPE DIEFFESCAPE, *LPDIEFFESCAPE;
95typedef struct DIEFFECT DIEFFECT, *LPDIEFFECT;
96typedef const DIEFFECT *LPCDIEFFECT;
97cpp_quote("#endif")
98
99cpp_quote("")
100[object, uuid(02538130-898f-11d0-9ad0-00a0c9a06e35), local]
101interface 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
115cpp_quote("#endif /* DIJ_RINGZERO */")
116
117cpp_quote("#ifndef JOY_HW_NONE")
118
119cpp_quote("#define JOY_HW_NONE 0")
120cpp_quote("#define JOY_HW_CUSTOM 1")
121cpp_quote("#define JOY_HW_2A_2B_GENERIC 2")
122cpp_quote("#define JOY_HW_2A_4B_GENERIC 3")
123cpp_quote("#define JOY_HW_2B_GAMEPAD 4")
124cpp_quote("#define JOY_HW_2B_FLIGHTYOKE 5")
125cpp_quote("#define JOY_HW_2B_FLIGHTYOKETHROTTLE 6")
126cpp_quote("#define JOY_HW_3A_2B_GENERIC 7")
127cpp_quote("#define JOY_HW_3A_4B_GENERIC 8")
128cpp_quote("#define JOY_HW_4B_GAMEPAD 9")
129cpp_quote("#define JOY_HW_4B_FLIGHTYOKE 10")
130cpp_quote("#define JOY_HW_4B_FLIGHTYOKETHROTTLE 11")
131cpp_quote("#define JOY_HW_TWO_2A_2B_WITH_Y 12")
132cpp_quote("#define JOY_HW_LASTENTRY 13")
133
134cpp_quote("#define JOY_ISCAL_XY 0x00000001")
135cpp_quote("#define JOY_ISCAL_Z 0x00000002")
136cpp_quote("#define JOY_ISCAL_R 0x00000004")
137cpp_quote("#define JOY_ISCAL_U 0x00000008")
138cpp_quote("#define JOY_ISCAL_V 0x00000010")
139cpp_quote("#define JOY_ISCAL_POV 0x00000020")
140
141const USHORT JOY_POVVAL_FORWARD = 0;
142const USHORT JOY_POVVAL_BACKWARD = 1;
143const USHORT JOY_POVVAL_LEFT = 2;
144const USHORT JOY_POVVAL_RIGHT = 3;
145const USHORT JOY_POV_NUMDIRS = 4;
146
147cpp_quote("#define JOY_HWS_HASZ 0x00000001")
148cpp_quote("#define JOY_HWS_HASPOV 0x00000002")
149cpp_quote("#define JOY_HWS_POVISBUTTONCOMBOS 0x00000004")
150cpp_quote("#define JOY_HWS_POVISPOLL 0x00000008")
151cpp_quote("#define JOY_HWS_ISYOKE 0x00000010")
152cpp_quote("#define JOY_HWS_ISGAMEPAD 0x00000020")
153cpp_quote("#define JOY_HWS_ISCARCTRL 0x00000040")
154
155cpp_quote("#define JOY_HWS_XISJ1Y 0x00000080")
156cpp_quote("#define JOY_HWS_XISJ2X 0x00000100")
157cpp_quote("#define JOY_HWS_XISJ2Y 0x00000200")
158
159cpp_quote("#define JOY_HWS_YISJ1X 0x00000400")
160cpp_quote("#define JOY_HWS_YISJ2X 0x00000800")
161cpp_quote("#define JOY_HWS_YISJ2Y 0x00001000")
162
163cpp_quote("#define JOY_HWS_ZISJ1X 0x00002000")
164cpp_quote("#define JOY_HWS_ZISJ1Y 0x00004000")
165cpp_quote("#define JOY_HWS_ZISJ2X 0x00008000")
166
167cpp_quote("#define JOY_HWS_POVISJ1X 0x00010000")
168cpp_quote("#define JOY_HWS_POVISJ1Y 0x00020000")
169cpp_quote("#define JOY_HWS_POVISJ2X 0x00040000")
170
171cpp_quote("#define JOY_HWS_HASR 0x00080000")
172cpp_quote("#define JOY_HWS_RISJ1X 0x00100000")
173cpp_quote("#define JOY_HWS_RISJ1Y 0x00200000")
174cpp_quote("#define JOY_HWS_RISJ2Y 0x00400000")
175
176cpp_quote("#define JOY_HWS_HASU 0x00800000")
177cpp_quote("#define JOY_HWS_HASV 0x01000000")
178
179cpp_quote("#define JOY_US_HASRUDDER 0x00000001")
180cpp_quote("#define JOY_US_PRESENT 0x00000002")
181cpp_quote("#define JOY_US_ISOEM 0x00000004")
182
183cpp_quote("#define JOY_US_RESERVED 0x80000000")
184
185cpp_quote("#define JOYTYPE_ZEROGAMEENUMOEMDATA 0x00000001")
186cpp_quote("#define JOYTYPE_NOAUTODETECTGAMEPORT 0x00000002")
187cpp_quote("#define JOYTYPE_NOHIDDIRECT 0x00000004")
188cpp_quote("#define JOYTYPE_ANALOGCOMPAT 0x00000008")
189cpp_quote("#define JOYTYPE_DEFAULTPROPSHEET 0x80000000")
190
191cpp_quote("#define JOYTYPE_DEVICEHIDE 0x00010000")
192cpp_quote("#define JOYTYPE_MOUSEHIDE 0x00020000")
193cpp_quote("#define JOYTYPE_KEYBHIDE 0x00040000")
194cpp_quote("#define JOYTYPE_GAMEHIDE 0x00080000")
195cpp_quote("#define JOYTYPE_HIDEACTIVE 0x00100000")
196cpp_quote("#define JOYTYPE_INFOMASK 0x00E00000")
197cpp_quote("#define JOYTYPE_INFODEFAULT 0x00000000")
198cpp_quote("#define JOYTYPE_INFOYYPEDALS 0x00200000")
199cpp_quote("#define JOYTYPE_INFOZYPEDALS 0x00400000")
200cpp_quote("#define JOYTYPE_INFOYRPEDALS 0x00600000")
201cpp_quote("#define JOYTYPE_INFOZRPEDALS 0x00800000")
202cpp_quote("#define JOYTYPE_INFOZISSLIDER 0x00200000")
203cpp_quote("#define JOYTYPE_INFOZISZ 0x00400000")
204cpp_quote("#define JOYTYPE_ENABLEINPUTREPORT 0x01000000")
205
206cpp_quote("")
207typedef 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
216cpp_quote("")
217typedef struct joyrange_tag {
218 JOYPOS jpMin;
219 JOYPOS jpMax;
220 JOYPOS jpCenter;
221} JOYRANGE, *LPJOYRANGE;
222
223cpp_quote("")
224typedef struct joyreguservalues_tag {
225 DWORD dwTimeOut;
226 JOYRANGE jrvRanges;
227 JOYPOS jpDeadZone;
228} JOYREGUSERVALUES, *LPJOYREGUSERVALUES;
229
230cpp_quote("")
231typedef struct joyreghwsettings_tag {
232 DWORD dwFlags;
233 DWORD dwNumButtons;
234} JOYREGHWSETTINGS, *LPJOYHWSETTINGS;
235
236cpp_quote("")
237typedef struct joyreghwvalues_tag {
238 JOYRANGE jrvHardware;
239 DWORD dwPOVValues[JOY_POV_NUMDIRS];
240 DWORD dwCalFlags;
241} JOYREGHWVALUES, *LPJOYREGHWVALUES;
242
243cpp_quote("")
244typedef struct joyreghwconfig_tag {
245 JOYREGHWSETTINGS hws;
246 DWORD dwUsageSettings;
247 JOYREGHWVALUES hwv;
248 DWORD dwType;
249 DWORD dwReserved;
250} JOYREGHWCONFIG, *LPJOYREGHWCONFIG;
251
252cpp_quote("")
253typedef 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
262cpp_quote("#endif /* JOY_HW_NONE */")
263
264cpp_quote("#ifndef DIJ_RINGZERO")
265
266const USHORT MAX_JOYSTRING = 256;
267cpp_quote("typedef WINBOOL (WINAPI *LPDIJOYTYPECALLBACK)(LPCWSTR, LPVOID);")
268
269/* for this idl only */
270cpp_quote("#if 0")
271const USHORT MAX_JOYSTICKOEMVXDNAME = 260;
272cpp_quote("#endif")
273
274cpp_quote("#ifndef MAX_JOYSTICKOEMVXDNAME")
275cpp_quote("#define MAX_JOYSTICKOEMVXDNAME 260")
276cpp_quote("#endif")
277
278cpp_quote("#define DITC_REGHWSETTINGS 0x00000001")
279cpp_quote("#define DITC_CLSIDCONFIG 0x00000002")
280cpp_quote("#define DITC_DISPLAYNAME 0x00000004")
281cpp_quote("#define DITC_CALLOUT 0x00000008")
282cpp_quote("#define DITC_HARDWAREID 0x00000010")
283cpp_quote("#define DITC_FLAGS1 0x00000020")
284cpp_quote("#define DITC_FLAGS2 0x00000040")
285cpp_quote("#define DITC_MAPFILE 0x00000080")
286
287cpp_quote("")
288typedef 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;
295typedef const DIJOYTYPEINFO_DX5 *LPCDIJOYTYPEINFO_DX5;
296
297cpp_quote("")
298typedef 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;
307typedef const DIJOYTYPEINFO_DX6 *LPCDIJOYTYPEINFO_DX6;
308
309cpp_quote("")
310typedef 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;
321typedef const DIJOYTYPEINFO *LPCDIJOYTYPEINFO;
322
323cpp_quote("#define DIJC_GUIDINSTANCE 0x00000001")
324cpp_quote("#define DIJC_REGHWCONFIGTYPE 0x00000002")
325cpp_quote("#define DIJC_GAIN 0x00000004")
326cpp_quote("#define DIJC_CALLOUT 0x00000008")
327cpp_quote("#define DIJC_WDMGAMEPORT 0x00000010")
328
329cpp_quote("")
330typedef 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;
338typedef const DIJOYCONFIG_DX5 *LPCDIJOYCONFIG_DX5;
339
340cpp_quote("")
341typedef 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;
350typedef const DIJOYCONFIG *LPCDIJOYCONFIG;
351
352cpp_quote("#define DIJU_USERVALUES 0x00000001")
353cpp_quote("#define DIJU_GLOBALDRIVER 0x00000002")
354cpp_quote("#define DIJU_GAMEPORTEMULATOR 0x00000004")
355
356cpp_quote("")
357typedef struct DIJOYUSERVALUES {
358 DWORD dwSize;
359 JOYREGUSERVALUES ruv;
360 WCHAR wszGlobalDriver[MAX_JOYSTRING];
361 WCHAR wszGameportEmulator[MAX_JOYSTRING];
362} DIJOYUSERVALUES, *LPDIJOYUSERVALUES;
363typedef const DIJOYUSERVALUES *LPCDIJOYUSERVALUES;
364
365cpp_quote("DEFINE_GUID(GUID_KeyboardClass, 0x4d36e96b,0xe325,0x11ce,0xbf,0xc1,0x08,0x00,0x2b,0xe1,0x03,0x18);")
366cpp_quote("DEFINE_GUID(GUID_MediaClass, 0x4d36e96c,0xe325,0x11ce,0xbf,0xc1,0x08,0x00,0x2b,0xe1,0x03,0x18);")
367cpp_quote("DEFINE_GUID(GUID_MouseClass, 0x4d36e96f,0xe325,0x11ce,0xbf,0xc1,0x08,0x00,0x2b,0xe1,0x03,0x18);")
368cpp_quote("DEFINE_GUID(GUID_HIDClass, 0x745a17a0,0x74d3,0x11d0,0xb6,0xfe,0x00,0xa0,0xc9,0x0f,0x57,0xda);")
369
370cpp_quote("")
371[object, uuid(1de12ab1-c9f5-11cf-bfc7-444553540000), local]
372interface 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
391cpp_quote("")
392[object, uuid(eb0d7dfa-1990-4f27-b4d6-edf2eec4a44c), local]
393interface 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
412cpp_quote("#endif /* DIJ_RINGZERO */")
413
414cpp_quote("#define DIRECTINPUT_NOTIFICATION_MSGSTRINGA \"DIRECTINPUT_NOTIFICATION_MSGSTRING\"")
415cpp_quote("#define DIRECTINPUT_NOTIFICATION_MSGSTRINGW L\"DIRECTINPUT_NOTIFICATION_MSGSTRING\"")
416cpp_quote("#define DIRECTINPUT_NOTIFICATION_MSGSTRING __MINGW_NAME_AW(DIRECTINPUT_NOTIFICATION_MSGSTRING)")
417
418cpp_quote("#define DIMSGWP_NEWAPPSTART 0x00000001")
419cpp_quote("#define DIMSGWP_DX8APPSTART 0x00000002")
420cpp_quote("#define DIMSGWP_DX8MAPPERAPPSTART 0x00000003")
421
422cpp_quote("#define DIAPPIDFLAG_NOTIME 0x00000001")
423cpp_quote("#define DIAPPIDFLAG_NOSIZE 0x00000002")
424
425cpp_quote("#define DIRECTINPUT_REGSTR_VAL_APPIDFLAGA \"AppIdFlag\"")
426cpp_quote("#define DIRECTINPUT_REGSTR_KEY_LASTAPPA \"MostRecentApplication\"")
427cpp_quote("#define DIRECTINPUT_REGSTR_KEY_LASTMAPAPPA \"MostRecentMapperApplication\"")
428cpp_quote("#define DIRECTINPUT_REGSTR_VAL_VERSIONA \"Version\"")
429cpp_quote("#define DIRECTINPUT_REGSTR_VAL_NAMEA \"Name\"")
430cpp_quote("#define DIRECTINPUT_REGSTR_VAL_IDA \"Id\"")
431cpp_quote("#define DIRECTINPUT_REGSTR_VAL_MAPPERA \"UsesMapper\"")
432cpp_quote("#define DIRECTINPUT_REGSTR_VAL_LASTSTARTA \"MostRecentStart\"")
433
434cpp_quote("#define DIRECTINPUT_REGSTR_VAL_APPIDFLAGW L\"AppIdFlag\"")
435cpp_quote("#define DIRECTINPUT_REGSTR_KEY_LASTAPPW L\"MostRecentApplication\"")
436cpp_quote("#define DIRECTINPUT_REGSTR_KEY_LASTMAPAPPW L\"MostRecentMapperApplication\"")
437cpp_quote("#define DIRECTINPUT_REGSTR_VAL_VERSIONW L\"Version\"")
438cpp_quote("#define DIRECTINPUT_REGSTR_VAL_NAMEW L\"Name\"")
439cpp_quote("#define DIRECTINPUT_REGSTR_VAL_IDW L\"Id\"")
440cpp_quote("#define DIRECTINPUT_REGSTR_VAL_MAPPERW L\"UsesMapper\"")
441cpp_quote("#define DIRECTINPUT_REGSTR_VAL_LASTSTARTW L\"MostRecentStart\"")
442
443cpp_quote("#define DIRECTINPUT_REGSTR_VAL_APPIDFLAG __MINGW_NAME_AW(DIRECTINPUT_REGSTR_VAL_APPIDFLAG)")
444cpp_quote("#define DIRECTINPUT_REGSTR_KEY_LASTAPP __MINGW_NAME_AW(DIRECTINPUT_REGSTR_KEY_LASTAPP)")
445cpp_quote("#define DIRECTINPUT_REGSTR_KEY_LASTMAPAPP __MINGW_NAME_AW(DIRECTINPUT_REGSTR_KEY_LASTMAPAPP)")
446cpp_quote("#define DIRECTINPUT_REGSTR_VAL_VERSION __MINGW_NAME_AW(DIRECTINPUT_REGSTR_VAL_VERSION)")
447cpp_quote("#define DIRECTINPUT_REGSTR_VAL_NAME __MINGW_NAME_AW(DIRECTINPUT_REGSTR_VAL_NAME)")
448cpp_quote("#define DIRECTINPUT_REGSTR_VAL_ID __MINGW_NAME_AW(DIRECTINPUT_REGSTR_VAL_ID)")
449cpp_quote("#define DIRECTINPUT_REGSTR_VAL_MAPPER __MINGW_NAME_AW(DIRECTINPUT_REGSTR_VAL_MAPPER)")
450cpp_quote("#define DIRECTINPUT_REGSTR_VAL_LASTSTART __MINGW_NAME_AW(DIRECTINPUT_REGSTR_VAL_LASTSTART)")
451
452cpp_quote("#define DIERR_NOMOREITEMS MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_NO_MORE_ITEMS)")
453
454cpp_quote("#define DIERR_DRIVERFIRST __MSABI_LONG(0x80040300)")
455cpp_quote("#define DIERR_DRIVERLAST __MSABI_LONG(0x800403FF)")
456cpp_quote("#define DIERR_INVALIDCLASSINSTALLER __MSABI_LONG(0x80040400)")
457cpp_quote("#define DIERR_CANCELLED __MSABI_LONG(0x80040401)")
458cpp_quote("#define DIERR_BADINF __MSABI_LONG(0x80040402)")
459cpp_quote("#define DIDIFT_DELETE __MSABI_LONG(0x01000000)")
460
461cpp_quote("#endif /* WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) */")
Note: See TracBrowser for help on using the repository browser.