annotate lib/legacy_dx/dinputd.h @ 522:61343380715b

Origianl structures integrity test added
author Nomad
date Sat, 02 Mar 2013 01:30:24 +0200
parents 9c0607679772
children
rev   line source
0
Ritor1
parents:
diff changeset
1 /****************************************************************************
Ritor1
parents:
diff changeset
2 *
Ritor1
parents:
diff changeset
3 * Copyright (C) 1995-2000 Microsoft Corporation. All Rights Reserved.
Ritor1
parents:
diff changeset
4 *
Ritor1
parents:
diff changeset
5 * File: dinputd.h
Ritor1
parents:
diff changeset
6 * Content: DirectInput include file for device driver implementors
Ritor1
parents:
diff changeset
7 *
Ritor1
parents:
diff changeset
8 ****************************************************************************/
Ritor1
parents:
diff changeset
9 #ifndef __DINPUTD_INCLUDED__
Ritor1
parents:
diff changeset
10 #define __DINPUTD_INCLUDED__
Ritor1
parents:
diff changeset
11
Ritor1
parents:
diff changeset
12 #ifndef DIRECTINPUT_VERSION
Ritor1
parents:
diff changeset
13 #define DIRECTINPUT_VERSION 0x0800
Ritor1
parents:
diff changeset
14 #pragma message(__FILE__ ": DIRECTINPUT_VERSION undefined. Defaulting to version 0x0800")
Ritor1
parents:
diff changeset
15 #endif
Ritor1
parents:
diff changeset
16
Ritor1
parents:
diff changeset
17 #ifdef __cplusplus
Ritor1
parents:
diff changeset
18 extern "C" {
Ritor1
parents:
diff changeset
19 #endif
Ritor1
parents:
diff changeset
20
Ritor1
parents:
diff changeset
21 /****************************************************************************
Ritor1
parents:
diff changeset
22 *
Ritor1
parents:
diff changeset
23 * Interfaces
Ritor1
parents:
diff changeset
24 *
Ritor1
parents:
diff changeset
25 ****************************************************************************/
Ritor1
parents:
diff changeset
26
Ritor1
parents:
diff changeset
27 #ifndef DIJ_RINGZERO
Ritor1
parents:
diff changeset
28
Ritor1
parents:
diff changeset
29 DEFINE_GUID(IID_IDirectInputEffectDriver, 0x02538130,0x898F,0x11D0,0x9A,0xD0,0x00,0xA0,0xC9,0xA0,0x6E,0x35);
Ritor1
parents:
diff changeset
30 DEFINE_GUID(IID_IDirectInputJoyConfig, 0x1DE12AB1,0xC9F5,0x11CF,0xBF,0xC7,0x44,0x45,0x53,0x54,0x00,0x00);
Ritor1
parents:
diff changeset
31 DEFINE_GUID(IID_IDirectInputPIDDriver, 0xEEC6993A,0xB3FD,0x11D2,0xA9,0x16,0x00,0xC0,0x4F,0xB9,0x86,0x38);
Ritor1
parents:
diff changeset
32
Ritor1
parents:
diff changeset
33 DEFINE_GUID(IID_IDirectInputJoyConfig8, 0xeb0d7dfa,0x1990,0x4f27,0xb4,0xd6,0xed,0xf2,0xee,0xc4,0xa4,0x4c);
Ritor1
parents:
diff changeset
34
Ritor1
parents:
diff changeset
35 #endif /* DIJ_RINGZERO */
Ritor1
parents:
diff changeset
36
Ritor1
parents:
diff changeset
37
Ritor1
parents:
diff changeset
38 /****************************************************************************
Ritor1
parents:
diff changeset
39 *
Ritor1
parents:
diff changeset
40 * IDirectInputEffectDriver
Ritor1
parents:
diff changeset
41 *
Ritor1
parents:
diff changeset
42 ****************************************************************************/
Ritor1
parents:
diff changeset
43
Ritor1
parents:
diff changeset
44 typedef struct DIOBJECTATTRIBUTES {
Ritor1
parents:
diff changeset
45 DWORD dwFlags;
Ritor1
parents:
diff changeset
46 WORD wUsagePage;
Ritor1
parents:
diff changeset
47 WORD wUsage;
Ritor1
parents:
diff changeset
48 } DIOBJECTATTRIBUTES, *LPDIOBJECTATTRIBUTES;
Ritor1
parents:
diff changeset
49 typedef const DIOBJECTATTRIBUTES *LPCDIOBJECTATTRIBUTES;
Ritor1
parents:
diff changeset
50
Ritor1
parents:
diff changeset
51 typedef struct DIFFOBJECTATTRIBUTES {
Ritor1
parents:
diff changeset
52 DWORD dwFFMaxForce;
Ritor1
parents:
diff changeset
53 DWORD dwFFForceResolution;
Ritor1
parents:
diff changeset
54 } DIFFOBJECTATTRIBUTES, *LPDIFFOBJECTATTRIBUTES;
Ritor1
parents:
diff changeset
55 typedef const DIFFOBJECTATTRIBUTES *LPCDIFFOBJECTATTRIBUTES;
Ritor1
parents:
diff changeset
56
Ritor1
parents:
diff changeset
57 typedef struct DIOBJECTCALIBRATION {
Ritor1
parents:
diff changeset
58 LONG lMin;
Ritor1
parents:
diff changeset
59 LONG lCenter;
Ritor1
parents:
diff changeset
60 LONG lMax;
Ritor1
parents:
diff changeset
61 } DIOBJECTCALIBRATION, *LPDIOBJECTCALIBRATION;
Ritor1
parents:
diff changeset
62 typedef const DIOBJECTCALIBRATION *LPCDIOBJECTCALIBRATION;
Ritor1
parents:
diff changeset
63
Ritor1
parents:
diff changeset
64 typedef struct DIPOVCALIBRATION {
Ritor1
parents:
diff changeset
65 LONG lMin[5];
Ritor1
parents:
diff changeset
66 LONG lMax[5];
Ritor1
parents:
diff changeset
67 } DIPOVCALIBRATION, *LPDIPOVCALIBRATION;
Ritor1
parents:
diff changeset
68 typedef const DIPOVCALIBRATION *LPCDIPOVCALIBRATION;
Ritor1
parents:
diff changeset
69
Ritor1
parents:
diff changeset
70 typedef struct DIEFFECTATTRIBUTES {
Ritor1
parents:
diff changeset
71 DWORD dwEffectId;
Ritor1
parents:
diff changeset
72 DWORD dwEffType;
Ritor1
parents:
diff changeset
73 DWORD dwStaticParams;
Ritor1
parents:
diff changeset
74 DWORD dwDynamicParams;
Ritor1
parents:
diff changeset
75 DWORD dwCoords;
Ritor1
parents:
diff changeset
76 } DIEFFECTATTRIBUTES, *LPDIEFFECTATTRIBUTES;
Ritor1
parents:
diff changeset
77 typedef const DIEFFECTATTRIBUTES *LPCDIEFFECTATTRIBUTES;
Ritor1
parents:
diff changeset
78
Ritor1
parents:
diff changeset
79 typedef struct DIFFDEVICEATTRIBUTES {
Ritor1
parents:
diff changeset
80 DWORD dwFlags;
Ritor1
parents:
diff changeset
81 DWORD dwFFSamplePeriod;
Ritor1
parents:
diff changeset
82 DWORD dwFFMinTimeResolution;
Ritor1
parents:
diff changeset
83 } DIFFDEVICEATTRIBUTES, *LPDIFFDEVICEATTRIBUTES;
Ritor1
parents:
diff changeset
84 typedef const DIFFDEVICEATTRIBUTES *LPCDIFFDEVICEATTRIBUTES;
Ritor1
parents:
diff changeset
85
Ritor1
parents:
diff changeset
86 typedef struct DIDRIVERVERSIONS {
Ritor1
parents:
diff changeset
87 DWORD dwSize;
Ritor1
parents:
diff changeset
88 DWORD dwFirmwareRevision;
Ritor1
parents:
diff changeset
89 DWORD dwHardwareRevision;
Ritor1
parents:
diff changeset
90 DWORD dwFFDriverVersion;
Ritor1
parents:
diff changeset
91 } DIDRIVERVERSIONS, *LPDIDRIVERVERSIONS;
Ritor1
parents:
diff changeset
92 typedef const DIDRIVERVERSIONS *LPCDIDRIVERVERSIONS;
Ritor1
parents:
diff changeset
93
Ritor1
parents:
diff changeset
94 typedef struct DIDEVICESTATE {
Ritor1
parents:
diff changeset
95 DWORD dwSize;
Ritor1
parents:
diff changeset
96 DWORD dwState;
Ritor1
parents:
diff changeset
97 DWORD dwLoad;
Ritor1
parents:
diff changeset
98 } DIDEVICESTATE, *LPDIDEVICESTATE;
Ritor1
parents:
diff changeset
99
Ritor1
parents:
diff changeset
100 #define DEV_STS_EFFECT_RUNNING DIEGES_PLAYING
Ritor1
parents:
diff changeset
101
Ritor1
parents:
diff changeset
102 #ifndef DIJ_RINGZERO
Ritor1
parents:
diff changeset
103
Ritor1
parents:
diff changeset
104 typedef struct DIHIDFFINITINFO {
Ritor1
parents:
diff changeset
105 DWORD dwSize;
Ritor1
parents:
diff changeset
106 LPWSTR pwszDeviceInterface;
Ritor1
parents:
diff changeset
107 GUID GuidInstance;
Ritor1
parents:
diff changeset
108 } DIHIDFFINITINFO, *LPDIHIDFFINITINFO;
Ritor1
parents:
diff changeset
109
Ritor1
parents:
diff changeset
110 #undef INTERFACE
Ritor1
parents:
diff changeset
111 #define INTERFACE IDirectInputEffectDriver
Ritor1
parents:
diff changeset
112
Ritor1
parents:
diff changeset
113 DECLARE_INTERFACE_(IDirectInputEffectDriver, IUnknown)
Ritor1
parents:
diff changeset
114 {
Ritor1
parents:
diff changeset
115 /*** IUnknown methods ***/
Ritor1
parents:
diff changeset
116 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
Ritor1
parents:
diff changeset
117 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
Ritor1
parents:
diff changeset
118 STDMETHOD_(ULONG,Release)(THIS) PURE;
Ritor1
parents:
diff changeset
119
Ritor1
parents:
diff changeset
120 /*** IDirectInputEffectDriver methods ***/
Ritor1
parents:
diff changeset
121 STDMETHOD(DeviceID)(THIS_ DWORD,DWORD,DWORD,DWORD,LPVOID) PURE;
Ritor1
parents:
diff changeset
122 STDMETHOD(GetVersions)(THIS_ LPDIDRIVERVERSIONS) PURE;
Ritor1
parents:
diff changeset
123 STDMETHOD(Escape)(THIS_ DWORD,DWORD,LPDIEFFESCAPE) PURE;
Ritor1
parents:
diff changeset
124 STDMETHOD(SetGain)(THIS_ DWORD,DWORD) PURE;
Ritor1
parents:
diff changeset
125 STDMETHOD(SendForceFeedbackCommand)(THIS_ DWORD,DWORD) PURE;
Ritor1
parents:
diff changeset
126 STDMETHOD(GetForceFeedbackState)(THIS_ DWORD,LPDIDEVICESTATE) PURE;
Ritor1
parents:
diff changeset
127 STDMETHOD(DownloadEffect)(THIS_ DWORD,DWORD,LPDWORD,LPCDIEFFECT,DWORD) PURE;
Ritor1
parents:
diff changeset
128 STDMETHOD(DestroyEffect)(THIS_ DWORD,DWORD) PURE;
Ritor1
parents:
diff changeset
129 STDMETHOD(StartEffect)(THIS_ DWORD,DWORD,DWORD,DWORD) PURE;
Ritor1
parents:
diff changeset
130 STDMETHOD(StopEffect)(THIS_ DWORD,DWORD) PURE;
Ritor1
parents:
diff changeset
131 STDMETHOD(GetEffectStatus)(THIS_ DWORD,DWORD,LPDWORD) PURE;
Ritor1
parents:
diff changeset
132 };
Ritor1
parents:
diff changeset
133
Ritor1
parents:
diff changeset
134 typedef struct IDirectInputEffectDriver *LPDIRECTINPUTEFFECTDRIVER;
Ritor1
parents:
diff changeset
135
Ritor1
parents:
diff changeset
136 #if !defined(__cplusplus) || defined(CINTERFACE)
Ritor1
parents:
diff changeset
137 #define IDirectInputEffectDriver_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
Ritor1
parents:
diff changeset
138 #define IDirectInputEffectDriver_AddRef(p) (p)->lpVtbl->AddRef(p)
Ritor1
parents:
diff changeset
139 #define IDirectInputEffectDriver_Release(p) (p)->lpVtbl->Release(p)
Ritor1
parents:
diff changeset
140 #define IDirectInputEffectDriver_DeviceID(p,a,b,c,d,e) (p)->lpVtbl->DeviceID(p,a,b,c,d,e)
Ritor1
parents:
diff changeset
141 #define IDirectInputEffectDriver_GetVersions(p,a) (p)->lpVtbl->GetVersions(p,a)
Ritor1
parents:
diff changeset
142 #define IDirectInputEffectDriver_Escape(p,a,b,c) (p)->lpVtbl->Escape(p,a,b,c)
Ritor1
parents:
diff changeset
143 #define IDirectInputEffectDriver_SetGain(p,a,b) (p)->lpVtbl->SetGain(p,a,b)
Ritor1
parents:
diff changeset
144 #define IDirectInputEffectDriver_SendForceFeedbackCommand(p,a,b) (p)->lpVtbl->SendForceFeedbackCommand(p,a,b)
Ritor1
parents:
diff changeset
145 #define IDirectInputEffectDriver_GetForceFeedbackState(p,a,b) (p)->lpVtbl->GetForceFeedbackState(p,a,b)
Ritor1
parents:
diff changeset
146 #define IDirectInputEffectDriver_DownloadEffect(p,a,b,c,d,e) (p)->lpVtbl->DownloadEffect(p,a,b,c,d,e)
Ritor1
parents:
diff changeset
147 #define IDirectInputEffectDriver_DestroyEffect(p,a,b) (p)->lpVtbl->DestroyEffect(p,a,b)
Ritor1
parents:
diff changeset
148 #define IDirectInputEffectDriver_StartEffect(p,a,b,c,d) (p)->lpVtbl->StartEffect(p,a,b,c,d)
Ritor1
parents:
diff changeset
149 #define IDirectInputEffectDriver_StopEffect(p,a,b) (p)->lpVtbl->StopEffect(p,a,b)
Ritor1
parents:
diff changeset
150 #define IDirectInputEffectDriver_GetEffectStatus(p,a,b,c) (p)->lpVtbl->GetEffectStatus(p,a,b,c)
Ritor1
parents:
diff changeset
151 #else
Ritor1
parents:
diff changeset
152 #define IDirectInputEffectDriver_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
Ritor1
parents:
diff changeset
153 #define IDirectInputEffectDriver_AddRef(p) (p)->AddRef()
Ritor1
parents:
diff changeset
154 #define IDirectInputEffectDriver_Release(p) (p)->Release()
Ritor1
parents:
diff changeset
155 #define IDirectInputEffectDriver_DeviceID(p,a,b,c,d,e) (p)->DeviceID(a,b,c,d,e)
Ritor1
parents:
diff changeset
156 #define IDirectInputEffectDriver_GetVersions(p,a) (p)->GetVersions(a)
Ritor1
parents:
diff changeset
157 #define IDirectInputEffectDriver_Escape(p,a,b,c) (p)->Escape(a,b,c)
Ritor1
parents:
diff changeset
158 #define IDirectInputEffectDriver_SetGain(p,a,b) (p)->SetGain(a,b)
Ritor1
parents:
diff changeset
159 #define IDirectInputEffectDriver_SendForceFeedbackCommand(p,a,b) (p)->SendForceFeedbackCommand(a,b)
Ritor1
parents:
diff changeset
160 #define IDirectInputEffectDriver_GetForceFeedbackState(p,a,b) (p)->GetForceFeedbackState(a,b)
Ritor1
parents:
diff changeset
161 #define IDirectInputEffectDriver_DownloadEffect(p,a,b,c,d,e) (p)->DownloadEffect(a,b,c,d,e)
Ritor1
parents:
diff changeset
162 #define IDirectInputEffectDriver_DestroyEffect(p,a,b) (p)->DestroyEffect(a,b)
Ritor1
parents:
diff changeset
163 #define IDirectInputEffectDriver_StartEffect(p,a,b,c,d) (p)->StartEffect(a,b,c,d)
Ritor1
parents:
diff changeset
164 #define IDirectInputEffectDriver_StopEffect(p,a,b) (p)->StopEffect(a,b)
Ritor1
parents:
diff changeset
165 #define IDirectInputEffectDriver_GetEffectStatus(p,a,b,c) (p)->GetEffectStatus(a,b,c)
Ritor1
parents:
diff changeset
166 #endif
Ritor1
parents:
diff changeset
167
Ritor1
parents:
diff changeset
168
Ritor1
parents:
diff changeset
169 #endif /* DIJ_RINGZERO */
Ritor1
parents:
diff changeset
170
Ritor1
parents:
diff changeset
171
Ritor1
parents:
diff changeset
172 /****************************************************************************
Ritor1
parents:
diff changeset
173 *
Ritor1
parents:
diff changeset
174 * IDirectInputJoyConfig
Ritor1
parents:
diff changeset
175 *
Ritor1
parents:
diff changeset
176 ****************************************************************************/
Ritor1
parents:
diff changeset
177
Ritor1
parents:
diff changeset
178 /****************************************************************************
Ritor1
parents:
diff changeset
179 *
Ritor1
parents:
diff changeset
180 * Definitions copied from the DDK
Ritor1
parents:
diff changeset
181 *
Ritor1
parents:
diff changeset
182 ****************************************************************************/
Ritor1
parents:
diff changeset
183
Ritor1
parents:
diff changeset
184 #ifndef JOY_HW_NONE
Ritor1
parents:
diff changeset
185
Ritor1
parents:
diff changeset
186 /* pre-defined joystick types */
Ritor1
parents:
diff changeset
187 #define JOY_HW_NONE 0
Ritor1
parents:
diff changeset
188 #define JOY_HW_CUSTOM 1
Ritor1
parents:
diff changeset
189 #define JOY_HW_2A_2B_GENERIC 2
Ritor1
parents:
diff changeset
190 #define JOY_HW_2A_4B_GENERIC 3
Ritor1
parents:
diff changeset
191 #define JOY_HW_2B_GAMEPAD 4
Ritor1
parents:
diff changeset
192 #define JOY_HW_2B_FLIGHTYOKE 5
Ritor1
parents:
diff changeset
193 #define JOY_HW_2B_FLIGHTYOKETHROTTLE 6
Ritor1
parents:
diff changeset
194 #define JOY_HW_3A_2B_GENERIC 7
Ritor1
parents:
diff changeset
195 #define JOY_HW_3A_4B_GENERIC 8
Ritor1
parents:
diff changeset
196 #define JOY_HW_4B_GAMEPAD 9
Ritor1
parents:
diff changeset
197 #define JOY_HW_4B_FLIGHTYOKE 10
Ritor1
parents:
diff changeset
198 #define JOY_HW_4B_FLIGHTYOKETHROTTLE 11
Ritor1
parents:
diff changeset
199 #define JOY_HW_TWO_2A_2B_WITH_Y 12
Ritor1
parents:
diff changeset
200 #define JOY_HW_LASTENTRY 13
Ritor1
parents:
diff changeset
201
Ritor1
parents:
diff changeset
202
Ritor1
parents:
diff changeset
203 /* calibration flags */
Ritor1
parents:
diff changeset
204 #define JOY_ISCAL_XY 0x00000001l /* XY are calibrated */
Ritor1
parents:
diff changeset
205 #define JOY_ISCAL_Z 0x00000002l /* Z is calibrated */
Ritor1
parents:
diff changeset
206 #define JOY_ISCAL_R 0x00000004l /* R is calibrated */
Ritor1
parents:
diff changeset
207 #define JOY_ISCAL_U 0x00000008l /* U is calibrated */
Ritor1
parents:
diff changeset
208 #define JOY_ISCAL_V 0x00000010l /* V is calibrated */
Ritor1
parents:
diff changeset
209 #define JOY_ISCAL_POV 0x00000020l /* POV is calibrated */
Ritor1
parents:
diff changeset
210
Ritor1
parents:
diff changeset
211 /* point of view constants */
Ritor1
parents:
diff changeset
212 #define JOY_POV_NUMDIRS 4
Ritor1
parents:
diff changeset
213 #define JOY_POVVAL_FORWARD 0
Ritor1
parents:
diff changeset
214 #define JOY_POVVAL_BACKWARD 1
Ritor1
parents:
diff changeset
215 #define JOY_POVVAL_LEFT 2
Ritor1
parents:
diff changeset
216 #define JOY_POVVAL_RIGHT 3
Ritor1
parents:
diff changeset
217
Ritor1
parents:
diff changeset
218 /* Specific settings for joystick hardware */
Ritor1
parents:
diff changeset
219 #define JOY_HWS_HASZ 0x00000001l /* has Z info? */
Ritor1
parents:
diff changeset
220 #define JOY_HWS_HASPOV 0x00000002l /* point of view hat present */
Ritor1
parents:
diff changeset
221 #define JOY_HWS_POVISBUTTONCOMBOS 0x00000004l /* pov done through combo of buttons */
Ritor1
parents:
diff changeset
222 #define JOY_HWS_POVISPOLL 0x00000008l /* pov done through polling */
Ritor1
parents:
diff changeset
223 #define JOY_HWS_ISYOKE 0x00000010l /* joystick is a flight yoke */
Ritor1
parents:
diff changeset
224 #define JOY_HWS_ISGAMEPAD 0x00000020l /* joystick is a game pad */
Ritor1
parents:
diff changeset
225 #define JOY_HWS_ISCARCTRL 0x00000040l /* joystick is a car controller */
Ritor1
parents:
diff changeset
226 /* X defaults to J1 X axis */
Ritor1
parents:
diff changeset
227 #define JOY_HWS_XISJ1Y 0x00000080l /* X is on J1 Y axis */
Ritor1
parents:
diff changeset
228 #define JOY_HWS_XISJ2X 0x00000100l /* X is on J2 X axis */
Ritor1
parents:
diff changeset
229 #define JOY_HWS_XISJ2Y 0x00000200l /* X is on J2 Y axis */
Ritor1
parents:
diff changeset
230 /* Y defaults to J1 Y axis */
Ritor1
parents:
diff changeset
231 #define JOY_HWS_YISJ1X 0x00000400l /* Y is on J1 X axis */
Ritor1
parents:
diff changeset
232 #define JOY_HWS_YISJ2X 0x00000800l /* Y is on J2 X axis */
Ritor1
parents:
diff changeset
233 #define JOY_HWS_YISJ2Y 0x00001000l /* Y is on J2 Y axis */
Ritor1
parents:
diff changeset
234 /* Z defaults to J2 Y axis */
Ritor1
parents:
diff changeset
235 #define JOY_HWS_ZISJ1X 0x00002000l /* Z is on J1 X axis */
Ritor1
parents:
diff changeset
236 #define JOY_HWS_ZISJ1Y 0x00004000l /* Z is on J1 Y axis */
Ritor1
parents:
diff changeset
237 #define JOY_HWS_ZISJ2X 0x00008000l /* Z is on J2 X axis */
Ritor1
parents:
diff changeset
238 /* POV defaults to J2 Y axis, if it is not button based */
Ritor1
parents:
diff changeset
239 #define JOY_HWS_POVISJ1X 0x00010000l /* pov done through J1 X axis */
Ritor1
parents:
diff changeset
240 #define JOY_HWS_POVISJ1Y 0x00020000l /* pov done through J1 Y axis */
Ritor1
parents:
diff changeset
241 #define JOY_HWS_POVISJ2X 0x00040000l /* pov done through J2 X axis */
Ritor1
parents:
diff changeset
242 /* R defaults to J2 X axis */
Ritor1
parents:
diff changeset
243 #define JOY_HWS_HASR 0x00080000l /* has R (4th axis) info */
Ritor1
parents:
diff changeset
244 #define JOY_HWS_RISJ1X 0x00100000l /* R done through J1 X axis */
Ritor1
parents:
diff changeset
245 #define JOY_HWS_RISJ1Y 0x00200000l /* R done through J1 Y axis */
Ritor1
parents:
diff changeset
246 #define JOY_HWS_RISJ2Y 0x00400000l /* R done through J2 X axis */
Ritor1
parents:
diff changeset
247 /* U & V for future hardware */
Ritor1
parents:
diff changeset
248 #define JOY_HWS_HASU 0x00800000l /* has U (5th axis) info */
Ritor1
parents:
diff changeset
249 #define JOY_HWS_HASV 0x01000000l /* has V (6th axis) info */
Ritor1
parents:
diff changeset
250
Ritor1
parents:
diff changeset
251 /* Usage settings */
Ritor1
parents:
diff changeset
252 #define JOY_US_HASRUDDER 0x00000001l /* joystick configured with rudder */
Ritor1
parents:
diff changeset
253 #define JOY_US_PRESENT 0x00000002l /* is joystick actually present? */
Ritor1
parents:
diff changeset
254 #define JOY_US_ISOEM 0x00000004l /* joystick is an OEM defined type */
Ritor1
parents:
diff changeset
255
Ritor1
parents:
diff changeset
256 /* reserved for future use -> as link to next possible dword */
Ritor1
parents:
diff changeset
257 #define JOY_US_RESERVED 0x80000000l /* reserved */
Ritor1
parents:
diff changeset
258
Ritor1
parents:
diff changeset
259
Ritor1
parents:
diff changeset
260 /* Settings for TypeInfo Flags1 */
Ritor1
parents:
diff changeset
261 #define JOYTYPE_ZEROGAMEENUMOEMDATA 0x00000001l /* Zero GameEnum's OEM data field */
Ritor1
parents:
diff changeset
262 #define JOYTYPE_NOAUTODETECTGAMEPORT 0x00000002l /* Device does not support Autodetect gameport*/
Ritor1
parents:
diff changeset
263 #define JOYTYPE_NOHIDDIRECT 0x00000004l /* Do not use HID directly for this device */
Ritor1
parents:
diff changeset
264 #define JOYTYPE_ANALOGCOMPAT 0x00000008l /* Expose the analog compatible ID */
Ritor1
parents:
diff changeset
265 #define JOYTYPE_DEFAULTPROPSHEET 0x80000000l /* CPL overrides custom property sheet */
Ritor1
parents:
diff changeset
266
Ritor1
parents:
diff changeset
267 /* Settings for TypeInfo Flags2 */
Ritor1
parents:
diff changeset
268 #define JOYTYPE_DEVICEHIDE 0x00010000l /* Hide unclassified devices */
Ritor1
parents:
diff changeset
269 #define JOYTYPE_MOUSEHIDE 0x00020000l /* Hide mice */
Ritor1
parents:
diff changeset
270 #define JOYTYPE_KEYBHIDE 0x00040000l /* Hide keyboards */
Ritor1
parents:
diff changeset
271 #define JOYTYPE_GAMEHIDE 0x00080000l /* Hide game controllers */
Ritor1
parents:
diff changeset
272 #define JOYTYPE_HIDEACTIVE 0x00100000l /* Hide flags are active */
Ritor1
parents:
diff changeset
273 #define JOYTYPE_INFOMASK 0x00E00000l /* Mask for type specific info */
Ritor1
parents:
diff changeset
274 #define JOYTYPE_INFODEFAULT 0x00000000l /* Use default axis mappings */
Ritor1
parents:
diff changeset
275 #define JOYTYPE_INFOYYPEDALS 0x00200000l /* Use Y as a combined pedals axis */
Ritor1
parents:
diff changeset
276 #define JOYTYPE_INFOZYPEDALS 0x00400000l /* Use Z for accelerate, Y for brake */
Ritor1
parents:
diff changeset
277 #define JOYTYPE_INFOYRPEDALS 0x00600000l /* Use Y for accelerate, R for brake */
Ritor1
parents:
diff changeset
278 #define JOYTYPE_INFOZRPEDALS 0x00800000l /* Use Z for accelerate, R for brake */
Ritor1
parents:
diff changeset
279 #define JOYTYPE_INFOZISSLIDER 0x00200000l /* Use Z as a slider */
Ritor1
parents:
diff changeset
280 #define JOYTYPE_INFOZISZ 0x00400000l /* Use Z as Z axis */
Ritor1
parents:
diff changeset
281 #define JOYTYPE_ENABLEINPUTREPORT 0x01000000l /* Enable initial input reports */
Ritor1
parents:
diff changeset
282
Ritor1
parents:
diff changeset
283 /* struct for storing x,y, z, and rudder values */
Ritor1
parents:
diff changeset
284 typedef struct joypos_tag {
Ritor1
parents:
diff changeset
285 DWORD dwX;
Ritor1
parents:
diff changeset
286 DWORD dwY;
Ritor1
parents:
diff changeset
287 DWORD dwZ;
Ritor1
parents:
diff changeset
288 DWORD dwR;
Ritor1
parents:
diff changeset
289 DWORD dwU;
Ritor1
parents:
diff changeset
290 DWORD dwV;
Ritor1
parents:
diff changeset
291 } JOYPOS, FAR *LPJOYPOS;
Ritor1
parents:
diff changeset
292
Ritor1
parents:
diff changeset
293 /* struct for storing ranges */
Ritor1
parents:
diff changeset
294 typedef struct joyrange_tag {
Ritor1
parents:
diff changeset
295 JOYPOS jpMin;
Ritor1
parents:
diff changeset
296 JOYPOS jpMax;
Ritor1
parents:
diff changeset
297 JOYPOS jpCenter;
Ritor1
parents:
diff changeset
298 } JOYRANGE,FAR *LPJOYRANGE;
Ritor1
parents:
diff changeset
299
Ritor1
parents:
diff changeset
300 /*
Ritor1
parents:
diff changeset
301 * dwTimeout - value at which to timeout joystick polling
Ritor1
parents:
diff changeset
302 * jrvRanges - range of values app wants returned for axes
Ritor1
parents:
diff changeset
303 * jpDeadZone - area around center to be considered
Ritor1
parents:
diff changeset
304 * as "dead". specified as a percentage
Ritor1
parents:
diff changeset
305 * (0-100). Only X & Y handled by system driver
Ritor1
parents:
diff changeset
306 */
Ritor1
parents:
diff changeset
307 typedef struct joyreguservalues_tag {
Ritor1
parents:
diff changeset
308 DWORD dwTimeOut;
Ritor1
parents:
diff changeset
309 JOYRANGE jrvRanges;
Ritor1
parents:
diff changeset
310 JOYPOS jpDeadZone;
Ritor1
parents:
diff changeset
311 } JOYREGUSERVALUES, FAR *LPJOYREGUSERVALUES;
Ritor1
parents:
diff changeset
312
Ritor1
parents:
diff changeset
313 typedef struct joyreghwsettings_tag {
Ritor1
parents:
diff changeset
314 DWORD dwFlags;
Ritor1
parents:
diff changeset
315 DWORD dwNumButtons;
Ritor1
parents:
diff changeset
316 } JOYREGHWSETTINGS, FAR *LPJOYHWSETTINGS;
Ritor1
parents:
diff changeset
317
Ritor1
parents:
diff changeset
318 /* range of values returned by the hardware (filled in by calibration) */
Ritor1
parents:
diff changeset
319 /*
Ritor1
parents:
diff changeset
320 * jrvHardware - values returned by hardware
Ritor1
parents:
diff changeset
321 * dwPOVValues - POV values returned by hardware
Ritor1
parents:
diff changeset
322 * dwCalFlags - what has been calibrated
Ritor1
parents:
diff changeset
323 */
Ritor1
parents:
diff changeset
324 typedef struct joyreghwvalues_tag {
Ritor1
parents:
diff changeset
325 JOYRANGE jrvHardware;
Ritor1
parents:
diff changeset
326 DWORD dwPOVValues[JOY_POV_NUMDIRS];
Ritor1
parents:
diff changeset
327 DWORD dwCalFlags;
Ritor1
parents:
diff changeset
328 } JOYREGHWVALUES, FAR *LPJOYREGHWVALUES;
Ritor1
parents:
diff changeset
329
Ritor1
parents:
diff changeset
330 /* hardware configuration */
Ritor1
parents:
diff changeset
331 /*
Ritor1
parents:
diff changeset
332 * hws - hardware settings
Ritor1
parents:
diff changeset
333 * dwUsageSettings - usage settings
Ritor1
parents:
diff changeset
334 * hwv - values returned by hardware
Ritor1
parents:
diff changeset
335 * dwType - type of joystick
Ritor1
parents:
diff changeset
336 * dwReserved - reserved for OEM drivers
Ritor1
parents:
diff changeset
337 */
Ritor1
parents:
diff changeset
338 typedef struct joyreghwconfig_tag {
Ritor1
parents:
diff changeset
339 JOYREGHWSETTINGS hws;
Ritor1
parents:
diff changeset
340 DWORD dwUsageSettings;
Ritor1
parents:
diff changeset
341 JOYREGHWVALUES hwv;
Ritor1
parents:
diff changeset
342 DWORD dwType;
Ritor1
parents:
diff changeset
343 DWORD dwReserved;
Ritor1
parents:
diff changeset
344 } JOYREGHWCONFIG, FAR *LPJOYREGHWCONFIG;
Ritor1
parents:
diff changeset
345
Ritor1
parents:
diff changeset
346 /* joystick calibration info structure */
Ritor1
parents:
diff changeset
347 typedef struct joycalibrate_tag {
Ritor1
parents:
diff changeset
348 UINT wXbase;
Ritor1
parents:
diff changeset
349 UINT wXdelta;
Ritor1
parents:
diff changeset
350 UINT wYbase;
Ritor1
parents:
diff changeset
351 UINT wYdelta;
Ritor1
parents:
diff changeset
352 UINT wZbase;
Ritor1
parents:
diff changeset
353 UINT wZdelta;
Ritor1
parents:
diff changeset
354 } JOYCALIBRATE;
Ritor1
parents:
diff changeset
355 typedef JOYCALIBRATE FAR *LPJOYCALIBRATE;
Ritor1
parents:
diff changeset
356
Ritor1
parents:
diff changeset
357 #endif
Ritor1
parents:
diff changeset
358
Ritor1
parents:
diff changeset
359 #ifndef DIJ_RINGZERO
Ritor1
parents:
diff changeset
360
Ritor1
parents:
diff changeset
361 #define MAX_JOYSTRING 256
Ritor1
parents:
diff changeset
362 typedef BOOL (FAR PASCAL * LPDIJOYTYPECALLBACK)(LPCWSTR, LPVOID);
Ritor1
parents:
diff changeset
363
Ritor1
parents:
diff changeset
364 #ifndef MAX_JOYSTICKOEMVXDNAME
Ritor1
parents:
diff changeset
365 #define MAX_JOYSTICKOEMVXDNAME 260
Ritor1
parents:
diff changeset
366 #endif
Ritor1
parents:
diff changeset
367
Ritor1
parents:
diff changeset
368 #define DITC_REGHWSETTINGS 0x00000001
Ritor1
parents:
diff changeset
369 #define DITC_CLSIDCONFIG 0x00000002
Ritor1
parents:
diff changeset
370 #define DITC_DISPLAYNAME 0x00000004
Ritor1
parents:
diff changeset
371 #define DITC_CALLOUT 0x00000008
Ritor1
parents:
diff changeset
372 #define DITC_HARDWAREID 0x00000010
Ritor1
parents:
diff changeset
373 #define DITC_FLAGS1 0x00000020
Ritor1
parents:
diff changeset
374 #define DITC_FLAGS2 0x00000040
Ritor1
parents:
diff changeset
375 #define DITC_MAPFILE 0x00000080
Ritor1
parents:
diff changeset
376
Ritor1
parents:
diff changeset
377
Ritor1
parents:
diff changeset
378
Ritor1
parents:
diff changeset
379 /* This structure is defined for DirectX 5.0 compatibility */
Ritor1
parents:
diff changeset
380
Ritor1
parents:
diff changeset
381 typedef struct DIJOYTYPEINFO_DX5 {
Ritor1
parents:
diff changeset
382 DWORD dwSize;
Ritor1
parents:
diff changeset
383 JOYREGHWSETTINGS hws;
Ritor1
parents:
diff changeset
384 CLSID clsidConfig;
Ritor1
parents:
diff changeset
385 WCHAR wszDisplayName[MAX_JOYSTRING];
Ritor1
parents:
diff changeset
386 WCHAR wszCallout[MAX_JOYSTICKOEMVXDNAME];
Ritor1
parents:
diff changeset
387 } DIJOYTYPEINFO_DX5, *LPDIJOYTYPEINFO_DX5;
Ritor1
parents:
diff changeset
388 typedef const DIJOYTYPEINFO_DX5 *LPCDIJOYTYPEINFO_DX5;
Ritor1
parents:
diff changeset
389
Ritor1
parents:
diff changeset
390 /* This structure is defined for DirectX 6.1 compatibility */
Ritor1
parents:
diff changeset
391 typedef struct DIJOYTYPEINFO_DX6 {
Ritor1
parents:
diff changeset
392 DWORD dwSize;
Ritor1
parents:
diff changeset
393 JOYREGHWSETTINGS hws;
Ritor1
parents:
diff changeset
394 CLSID clsidConfig;
Ritor1
parents:
diff changeset
395 WCHAR wszDisplayName[MAX_JOYSTRING];
Ritor1
parents:
diff changeset
396 WCHAR wszCallout[MAX_JOYSTICKOEMVXDNAME];
Ritor1
parents:
diff changeset
397 WCHAR wszHardwareId[MAX_JOYSTRING];
Ritor1
parents:
diff changeset
398 DWORD dwFlags1;
Ritor1
parents:
diff changeset
399 } DIJOYTYPEINFO_DX6, *LPDIJOYTYPEINFO_DX6;
Ritor1
parents:
diff changeset
400 typedef const DIJOYTYPEINFO_DX6 *LPCDIJOYTYPEINFO_DX6;
Ritor1
parents:
diff changeset
401
Ritor1
parents:
diff changeset
402 typedef struct DIJOYTYPEINFO {
Ritor1
parents:
diff changeset
403 DWORD dwSize;
Ritor1
parents:
diff changeset
404 JOYREGHWSETTINGS hws;
Ritor1
parents:
diff changeset
405 CLSID clsidConfig;
Ritor1
parents:
diff changeset
406 WCHAR wszDisplayName[MAX_JOYSTRING];
Ritor1
parents:
diff changeset
407 WCHAR wszCallout[MAX_JOYSTICKOEMVXDNAME];
Ritor1
parents:
diff changeset
408 #if(DIRECTINPUT_VERSION >= 0x05b2)
Ritor1
parents:
diff changeset
409 WCHAR wszHardwareId[MAX_JOYSTRING];
Ritor1
parents:
diff changeset
410 DWORD dwFlags1;
Ritor1
parents:
diff changeset
411 #if(DIRECTINPUT_VERSION >= 0x0800)
Ritor1
parents:
diff changeset
412 DWORD dwFlags2;
Ritor1
parents:
diff changeset
413 WCHAR wszMapFile[MAX_JOYSTRING];
Ritor1
parents:
diff changeset
414 #endif /* DIRECTINPUT_VERSION >= 0x0800 */
Ritor1
parents:
diff changeset
415 #endif /* DIRECTINPUT_VERSION >= 0x05b2 */
Ritor1
parents:
diff changeset
416 } DIJOYTYPEINFO, *LPDIJOYTYPEINFO;
Ritor1
parents:
diff changeset
417 typedef const DIJOYTYPEINFO *LPCDIJOYTYPEINFO;
Ritor1
parents:
diff changeset
418 #define DIJC_GUIDINSTANCE 0x00000001
Ritor1
parents:
diff changeset
419 #define DIJC_REGHWCONFIGTYPE 0x00000002
Ritor1
parents:
diff changeset
420 #define DIJC_GAIN 0x00000004
Ritor1
parents:
diff changeset
421 #define DIJC_CALLOUT 0x00000008
Ritor1
parents:
diff changeset
422 #define DIJC_WDMGAMEPORT 0x00000010
Ritor1
parents:
diff changeset
423
Ritor1
parents:
diff changeset
424 /* This structure is defined for DirectX 5.0 compatibility */
Ritor1
parents:
diff changeset
425
Ritor1
parents:
diff changeset
426 typedef struct DIJOYCONFIG_DX5 {
Ritor1
parents:
diff changeset
427 DWORD dwSize;
Ritor1
parents:
diff changeset
428 GUID guidInstance;
Ritor1
parents:
diff changeset
429 JOYREGHWCONFIG hwc;
Ritor1
parents:
diff changeset
430 DWORD dwGain;
Ritor1
parents:
diff changeset
431 WCHAR wszType[MAX_JOYSTRING];
Ritor1
parents:
diff changeset
432 WCHAR wszCallout[MAX_JOYSTRING];
Ritor1
parents:
diff changeset
433 } DIJOYCONFIG_DX5, *LPDIJOYCONFIG_DX5;
Ritor1
parents:
diff changeset
434 typedef const DIJOYCONFIG_DX5 *LPCDIJOYCONFIG_DX5;
Ritor1
parents:
diff changeset
435
Ritor1
parents:
diff changeset
436 typedef struct DIJOYCONFIG {
Ritor1
parents:
diff changeset
437 DWORD dwSize;
Ritor1
parents:
diff changeset
438 GUID guidInstance;
Ritor1
parents:
diff changeset
439 JOYREGHWCONFIG hwc;
Ritor1
parents:
diff changeset
440 DWORD dwGain;
Ritor1
parents:
diff changeset
441 WCHAR wszType[MAX_JOYSTRING];
Ritor1
parents:
diff changeset
442 WCHAR wszCallout[MAX_JOYSTRING];
Ritor1
parents:
diff changeset
443 #if(DIRECTINPUT_VERSION >= 0x05b2)
Ritor1
parents:
diff changeset
444 GUID guidGameport;
Ritor1
parents:
diff changeset
445 #endif /* DIRECTINPUT_VERSION >= 0x05b2 */
Ritor1
parents:
diff changeset
446 } DIJOYCONFIG, *LPDIJOYCONFIG;
Ritor1
parents:
diff changeset
447 typedef const DIJOYCONFIG *LPCDIJOYCONFIG;
Ritor1
parents:
diff changeset
448
Ritor1
parents:
diff changeset
449
Ritor1
parents:
diff changeset
450 #define DIJU_USERVALUES 0x00000001
Ritor1
parents:
diff changeset
451 #define DIJU_GLOBALDRIVER 0x00000002
Ritor1
parents:
diff changeset
452 #define DIJU_GAMEPORTEMULATOR 0x00000004
Ritor1
parents:
diff changeset
453
Ritor1
parents:
diff changeset
454 typedef struct DIJOYUSERVALUES {
Ritor1
parents:
diff changeset
455 DWORD dwSize;
Ritor1
parents:
diff changeset
456 JOYREGUSERVALUES ruv;
Ritor1
parents:
diff changeset
457 WCHAR wszGlobalDriver[MAX_JOYSTRING];
Ritor1
parents:
diff changeset
458 WCHAR wszGameportEmulator[MAX_JOYSTRING];
Ritor1
parents:
diff changeset
459 } DIJOYUSERVALUES, *LPDIJOYUSERVALUES;
Ritor1
parents:
diff changeset
460 typedef const DIJOYUSERVALUES *LPCDIJOYUSERVALUES;
Ritor1
parents:
diff changeset
461
Ritor1
parents:
diff changeset
462 DEFINE_GUID(GUID_KeyboardClass, 0x4D36E96B,0xE325,0x11CE,0xBF,0xC1,0x08,0x00,0x2B,0xE1,0x03,0x18);
Ritor1
parents:
diff changeset
463 DEFINE_GUID(GUID_MediaClass, 0x4D36E96C,0xE325,0x11CE,0xBF,0xC1,0x08,0x00,0x2B,0xE1,0x03,0x18);
Ritor1
parents:
diff changeset
464 DEFINE_GUID(GUID_MouseClass, 0x4D36E96F,0xE325,0x11CE,0xBF,0xC1,0x08,0x00,0x2B,0xE1,0x03,0x18);
Ritor1
parents:
diff changeset
465 DEFINE_GUID(GUID_HIDClass, 0x745A17A0,0x74D3,0x11D0,0xB6,0xFE,0x00,0xA0,0xC9,0x0F,0x57,0xDA);
Ritor1
parents:
diff changeset
466
Ritor1
parents:
diff changeset
467 #undef INTERFACE
Ritor1
parents:
diff changeset
468 #define INTERFACE IDirectInputJoyConfig
Ritor1
parents:
diff changeset
469
Ritor1
parents:
diff changeset
470 DECLARE_INTERFACE_(IDirectInputJoyConfig, IUnknown)
Ritor1
parents:
diff changeset
471 {
Ritor1
parents:
diff changeset
472 /*** IUnknown methods ***/
Ritor1
parents:
diff changeset
473 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
Ritor1
parents:
diff changeset
474 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
Ritor1
parents:
diff changeset
475 STDMETHOD_(ULONG,Release)(THIS) PURE;
Ritor1
parents:
diff changeset
476
Ritor1
parents:
diff changeset
477 /*** IDirectInputJoyConfig methods ***/
Ritor1
parents:
diff changeset
478 STDMETHOD(Acquire)(THIS) PURE;
Ritor1
parents:
diff changeset
479 STDMETHOD(Unacquire)(THIS) PURE;
Ritor1
parents:
diff changeset
480 STDMETHOD(SetCooperativeLevel)(THIS_ HWND,DWORD) PURE;
Ritor1
parents:
diff changeset
481 STDMETHOD(SendNotify)(THIS) PURE;
Ritor1
parents:
diff changeset
482 STDMETHOD(EnumTypes)(THIS_ LPDIJOYTYPECALLBACK,LPVOID) PURE;
Ritor1
parents:
diff changeset
483 STDMETHOD(GetTypeInfo)(THIS_ LPCWSTR,LPDIJOYTYPEINFO,DWORD) PURE;
Ritor1
parents:
diff changeset
484 STDMETHOD(SetTypeInfo)(THIS_ LPCWSTR,LPCDIJOYTYPEINFO,DWORD) PURE;
Ritor1
parents:
diff changeset
485 STDMETHOD(DeleteType)(THIS_ LPCWSTR) PURE;
Ritor1
parents:
diff changeset
486 STDMETHOD(GetConfig)(THIS_ UINT,LPDIJOYCONFIG,DWORD) PURE;
Ritor1
parents:
diff changeset
487 STDMETHOD(SetConfig)(THIS_ UINT,LPCDIJOYCONFIG,DWORD) PURE;
Ritor1
parents:
diff changeset
488 STDMETHOD(DeleteConfig)(THIS_ UINT) PURE;
Ritor1
parents:
diff changeset
489 STDMETHOD(GetUserValues)(THIS_ LPDIJOYUSERVALUES,DWORD) PURE;
Ritor1
parents:
diff changeset
490 STDMETHOD(SetUserValues)(THIS_ LPCDIJOYUSERVALUES,DWORD) PURE;
Ritor1
parents:
diff changeset
491 STDMETHOD(AddNewHardware)(THIS_ HWND,REFGUID) PURE;
Ritor1
parents:
diff changeset
492 STDMETHOD(OpenTypeKey)(THIS_ LPCWSTR,DWORD,PHKEY) PURE;
Ritor1
parents:
diff changeset
493 STDMETHOD(OpenConfigKey)(THIS_ UINT,DWORD,PHKEY) PURE;
Ritor1
parents:
diff changeset
494 };
Ritor1
parents:
diff changeset
495
Ritor1
parents:
diff changeset
496 typedef struct IDirectInputJoyConfig *LPDIRECTINPUTJOYCONFIG;
Ritor1
parents:
diff changeset
497
Ritor1
parents:
diff changeset
498 #if !defined(__cplusplus) || defined(CINTERFACE)
Ritor1
parents:
diff changeset
499 #define IDirectInputJoyConfig_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
Ritor1
parents:
diff changeset
500 #define IDirectInputJoyConfig_AddRef(p) (p)->lpVtbl->AddRef(p)
Ritor1
parents:
diff changeset
501 #define IDirectInputJoyConfig_Release(p) (p)->lpVtbl->Release(p)
Ritor1
parents:
diff changeset
502 #define IDirectInputJoyConfig_Acquire(p) (p)->lpVtbl->Acquire(p)
Ritor1
parents:
diff changeset
503 #define IDirectInputJoyConfig_Unacquire(p) (p)->lpVtbl->Unacquire(p)
Ritor1
parents:
diff changeset
504 #define IDirectInputJoyConfig_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b)
Ritor1
parents:
diff changeset
505 #define IDirectInputJoyConfig_SendNotify(p) (p)->lpVtbl->SendNotify(p)
Ritor1
parents:
diff changeset
506 #define IDirectInputJoyConfig_EnumTypes(p,a,b) (p)->lpVtbl->EnumTypes(p,a,b)
Ritor1
parents:
diff changeset
507 #define IDirectInputJoyConfig_GetTypeInfo(p,a,b,c) (p)->lpVtbl->GetTypeInfo(p,a,b,c)
Ritor1
parents:
diff changeset
508 #define IDirectInputJoyConfig_SetTypeInfo(p,a,b,c) (p)->lpVtbl->SetTypeInfo(p,a,b,c)
Ritor1
parents:
diff changeset
509 #define IDirectInputJoyConfig_DeleteType(p,a) (p)->lpVtbl->DeleteType(p,a)
Ritor1
parents:
diff changeset
510 #define IDirectInputJoyConfig_GetConfig(p,a,b,c) (p)->lpVtbl->GetConfig(p,a,b,c)
Ritor1
parents:
diff changeset
511 #define IDirectInputJoyConfig_SetConfig(p,a,b,c) (p)->lpVtbl->SetConfig(p,a,b,c)
Ritor1
parents:
diff changeset
512 #define IDirectInputJoyConfig_DeleteConfig(p,a) (p)->lpVtbl->DeleteConfig(p,a)
Ritor1
parents:
diff changeset
513 #define IDirectInputJoyConfig_GetUserValues(p,a,b) (p)->lpVtbl->GetUserValues(p,a,b)
Ritor1
parents:
diff changeset
514 #define IDirectInputJoyConfig_SetUserValues(p,a,b) (p)->lpVtbl->SetUserValues(p,a,b)
Ritor1
parents:
diff changeset
515 #define IDirectInputJoyConfig_AddNewHardware(p,a,b) (p)->lpVtbl->AddNewHardware(p,a,b)
Ritor1
parents:
diff changeset
516 #define IDirectInputJoyConfig_OpenTypeKey(p,a,b,c) (p)->lpVtbl->OpenTypeKey(p,a,b,c)
Ritor1
parents:
diff changeset
517 #define IDirectInputJoyConfig_OpenConfigKey(p,a,b,c) (p)->lpVtbl->OpenConfigKey(p,a,b,c)
Ritor1
parents:
diff changeset
518 #else
Ritor1
parents:
diff changeset
519 #define IDirectInputJoyConfig_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
Ritor1
parents:
diff changeset
520 #define IDirectInputJoyConfig_AddRef(p) (p)->AddRef()
Ritor1
parents:
diff changeset
521 #define IDirectInputJoyConfig_Release(p) (p)->Release()
Ritor1
parents:
diff changeset
522 #define IDirectInputJoyConfig_Acquire(p) (p)->Acquire()
Ritor1
parents:
diff changeset
523 #define IDirectInputJoyConfig_Unacquire(p) (p)->Unacquire()
Ritor1
parents:
diff changeset
524 #define IDirectInputJoyConfig_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b)
Ritor1
parents:
diff changeset
525 #define IDirectInputJoyConfig_SendNotify(p) (p)->SendNotify()
Ritor1
parents:
diff changeset
526 #define IDirectInputJoyConfig_EnumTypes(p,a,b) (p)->EnumTypes(a,b)
Ritor1
parents:
diff changeset
527 #define IDirectInputJoyConfig_GetTypeInfo(p,a,b,c) (p)->GetTypeInfo(a,b,c)
Ritor1
parents:
diff changeset
528 #define IDirectInputJoyConfig_SetTypeInfo(p,a,b,c) (p)->SetTypeInfo(a,b,c)
Ritor1
parents:
diff changeset
529 #define IDirectInputJoyConfig_DeleteType(p,a) (p)->DeleteType(a)
Ritor1
parents:
diff changeset
530 #define IDirectInputJoyConfig_GetConfig(p,a,b,c) (p)->GetConfig(a,b,c)
Ritor1
parents:
diff changeset
531 #define IDirectInputJoyConfig_SetConfig(p,a,b,c) (p)->SetConfig(a,b,c)
Ritor1
parents:
diff changeset
532 #define IDirectInputJoyConfig_DeleteConfig(p,a) (p)->DeleteConfig(a)
Ritor1
parents:
diff changeset
533 #define IDirectInputJoyConfig_GetUserValues(p,a,b) (p)->GetUserValues(a,b)
Ritor1
parents:
diff changeset
534 #define IDirectInputJoyConfig_SetUserValues(p,a,b) (p)->SetUserValues(a,b)
Ritor1
parents:
diff changeset
535 #define IDirectInputJoyConfig_AddNewHardware(p,a,b) (p)->AddNewHardware(a,b)
Ritor1
parents:
diff changeset
536 #define IDirectInputJoyConfig_OpenTypeKey(p,a,b,c) (p)->OpenTypeKey(a,b,c)
Ritor1
parents:
diff changeset
537 #define IDirectInputJoyConfig_OpenConfigKey(p,a,b,c) (p)->OpenConfigKey(a,b,c)
Ritor1
parents:
diff changeset
538 #endif
Ritor1
parents:
diff changeset
539
Ritor1
parents:
diff changeset
540 #endif /* DIJ_RINGZERO */
Ritor1
parents:
diff changeset
541
Ritor1
parents:
diff changeset
542 #if(DIRECTINPUT_VERSION >= 0x0800)
Ritor1
parents:
diff changeset
543
Ritor1
parents:
diff changeset
544 #ifndef DIJ_RINGZERO
Ritor1
parents:
diff changeset
545
Ritor1
parents:
diff changeset
546 #undef INTERFACE
Ritor1
parents:
diff changeset
547 #define INTERFACE IDirectInputJoyConfig8
Ritor1
parents:
diff changeset
548
Ritor1
parents:
diff changeset
549 DECLARE_INTERFACE_(IDirectInputJoyConfig8, IUnknown)
Ritor1
parents:
diff changeset
550 {
Ritor1
parents:
diff changeset
551 /*** IUnknown methods ***/
Ritor1
parents:
diff changeset
552 STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID * ppvObj) PURE;
Ritor1
parents:
diff changeset
553 STDMETHOD_(ULONG,AddRef)(THIS) PURE;
Ritor1
parents:
diff changeset
554 STDMETHOD_(ULONG,Release)(THIS) PURE;
Ritor1
parents:
diff changeset
555
Ritor1
parents:
diff changeset
556 /*** IDirectInputJoyConfig8 methods ***/
Ritor1
parents:
diff changeset
557 STDMETHOD(Acquire)(THIS) PURE;
Ritor1
parents:
diff changeset
558 STDMETHOD(Unacquire)(THIS) PURE;
Ritor1
parents:
diff changeset
559 STDMETHOD(SetCooperativeLevel)(THIS_ HWND,DWORD) PURE;
Ritor1
parents:
diff changeset
560 STDMETHOD(SendNotify)(THIS) PURE;
Ritor1
parents:
diff changeset
561 STDMETHOD(EnumTypes)(THIS_ LPDIJOYTYPECALLBACK,LPVOID) PURE;
Ritor1
parents:
diff changeset
562 STDMETHOD(GetTypeInfo)(THIS_ LPCWSTR,LPDIJOYTYPEINFO,DWORD) PURE;
Ritor1
parents:
diff changeset
563 STDMETHOD(SetTypeInfo)(THIS_ LPCWSTR,LPCDIJOYTYPEINFO,DWORD,LPWSTR) PURE;
Ritor1
parents:
diff changeset
564 STDMETHOD(DeleteType)(THIS_ LPCWSTR) PURE;
Ritor1
parents:
diff changeset
565 STDMETHOD(GetConfig)(THIS_ UINT,LPDIJOYCONFIG,DWORD) PURE;
Ritor1
parents:
diff changeset
566 STDMETHOD(SetConfig)(THIS_ UINT,LPCDIJOYCONFIG,DWORD) PURE;
Ritor1
parents:
diff changeset
567 STDMETHOD(DeleteConfig)(THIS_ UINT) PURE;
Ritor1
parents:
diff changeset
568 STDMETHOD(GetUserValues)(THIS_ LPDIJOYUSERVALUES,DWORD) PURE;
Ritor1
parents:
diff changeset
569 STDMETHOD(SetUserValues)(THIS_ LPCDIJOYUSERVALUES,DWORD) PURE;
Ritor1
parents:
diff changeset
570 STDMETHOD(AddNewHardware)(THIS_ HWND,REFGUID) PURE;
Ritor1
parents:
diff changeset
571 STDMETHOD(OpenTypeKey)(THIS_ LPCWSTR,DWORD,PHKEY) PURE;
Ritor1
parents:
diff changeset
572 STDMETHOD(OpenAppStatusKey)(THIS_ PHKEY) PURE;
Ritor1
parents:
diff changeset
573 };
Ritor1
parents:
diff changeset
574
Ritor1
parents:
diff changeset
575 typedef struct IDirectInputJoyConfig8 *LPDIRECTINPUTJOYCONFIG8;
Ritor1
parents:
diff changeset
576
Ritor1
parents:
diff changeset
577 #if !defined(__cplusplus) || defined(CINTERFACE)
Ritor1
parents:
diff changeset
578 #define IDirectInputJoyConfig8_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
Ritor1
parents:
diff changeset
579 #define IDirectInputJoyConfig8_AddRef(p) (p)->lpVtbl->AddRef(p)
Ritor1
parents:
diff changeset
580 #define IDirectInputJoyConfig8_Release(p) (p)->lpVtbl->Release(p)
Ritor1
parents:
diff changeset
581 #define IDirectInputJoyConfig8_Acquire(p) (p)->lpVtbl->Acquire(p)
Ritor1
parents:
diff changeset
582 #define IDirectInputJoyConfig8_Unacquire(p) (p)->lpVtbl->Unacquire(p)
Ritor1
parents:
diff changeset
583 #define IDirectInputJoyConfig8_SetCooperativeLevel(p,a,b) (p)->lpVtbl->SetCooperativeLevel(p,a,b)
Ritor1
parents:
diff changeset
584 #define IDirectInputJoyConfig8_SendNotify(p) (p)->lpVtbl->SendNotify(p)
Ritor1
parents:
diff changeset
585 #define IDirectInputJoyConfig8_EnumTypes(p,a,b) (p)->lpVtbl->EnumTypes(p,a,b)
Ritor1
parents:
diff changeset
586 #define IDirectInputJoyConfig8_GetTypeInfo(p,a,b,c) (p)->lpVtbl->GetTypeInfo(p,a,b,c)
Ritor1
parents:
diff changeset
587 #define IDirectInputJoyConfig8_SetTypeInfo(p,a,b,c,d) (p)->lpVtbl->SetTypeInfo(p,a,b,c,d)
Ritor1
parents:
diff changeset
588 #define IDirectInputJoyConfig8_DeleteType(p,a) (p)->lpVtbl->DeleteType(p,a)
Ritor1
parents:
diff changeset
589 #define IDirectInputJoyConfig8_GetConfig(p,a,b,c) (p)->lpVtbl->GetConfig(p,a,b,c)
Ritor1
parents:
diff changeset
590 #define IDirectInputJoyConfig8_SetConfig(p,a,b,c) (p)->lpVtbl->SetConfig(p,a,b,c)
Ritor1
parents:
diff changeset
591 #define IDirectInputJoyConfig8_DeleteConfig(p,a) (p)->lpVtbl->DeleteConfig(p,a)
Ritor1
parents:
diff changeset
592 #define IDirectInputJoyConfig8_GetUserValues(p,a,b) (p)->lpVtbl->GetUserValues(p,a,b)
Ritor1
parents:
diff changeset
593 #define IDirectInputJoyConfig8_SetUserValues(p,a,b) (p)->lpVtbl->SetUserValues(p,a,b)
Ritor1
parents:
diff changeset
594 #define IDirectInputJoyConfig8_AddNewHardware(p,a,b) (p)->lpVtbl->AddNewHardware(p,a,b)
Ritor1
parents:
diff changeset
595 #define IDirectInputJoyConfig8_OpenTypeKey(p,a,b,c) (p)->lpVtbl->OpenTypeKey(p,a,b,c)
Ritor1
parents:
diff changeset
596 #define IDirectInputJoyConfig8_OpenAppStatusKey(p,a) (p)->lpVtbl->OpenAppStatusKey(p,a)
Ritor1
parents:
diff changeset
597 #else
Ritor1
parents:
diff changeset
598 #define IDirectInputJoyConfig8_QueryInterface(p,a,b) (p)->QueryInterface(a,b)
Ritor1
parents:
diff changeset
599 #define IDirectInputJoyConfig8_AddRef(p) (p)->AddRef()
Ritor1
parents:
diff changeset
600 #define IDirectInputJoyConfig8_Release(p) (p)->Release()
Ritor1
parents:
diff changeset
601 #define IDirectInputJoyConfig8_Acquire(p) (p)->Acquire()
Ritor1
parents:
diff changeset
602 #define IDirectInputJoyConfig8_Unacquire(p) (p)->Unacquire()
Ritor1
parents:
diff changeset
603 #define IDirectInputJoyConfig8_SetCooperativeLevel(p,a,b) (p)->SetCooperativeLevel(a,b)
Ritor1
parents:
diff changeset
604 #define IDirectInputJoyConfig8_SendNotify(p) (p)->SendNotify()
Ritor1
parents:
diff changeset
605 #define IDirectInputJoyConfig8_EnumTypes(p,a,b) (p)->EnumTypes(a,b)
Ritor1
parents:
diff changeset
606 #define IDirectInputJoyConfig8_GetTypeInfo(p,a,b,c) (p)->GetTypeInfo(a,b,c)
Ritor1
parents:
diff changeset
607 #define IDirectInputJoyConfig8_SetTypeInfo(p,a,b,c,d) (p)->SetTypeInfo(a,b,c,d)
Ritor1
parents:
diff changeset
608 #define IDirectInputJoyConfig8_DeleteType(p,a) (p)->DeleteType(a)
Ritor1
parents:
diff changeset
609 #define IDirectInputJoyConfig8_GetConfig(p,a,b,c) (p)->GetConfig(a,b,c)
Ritor1
parents:
diff changeset
610 #define IDirectInputJoyConfig8_SetConfig(p,a,b,c) (p)->SetConfig(a,b,c)
Ritor1
parents:
diff changeset
611 #define IDirectInputJoyConfig8_DeleteConfig(p,a) (p)->DeleteConfig(a)
Ritor1
parents:
diff changeset
612 #define IDirectInputJoyConfig8_GetUserValues(p,a,b) (p)->GetUserValues(a,b)
Ritor1
parents:
diff changeset
613 #define IDirectInputJoyConfig8_SetUserValues(p,a,b) (p)->SetUserValues(a,b)
Ritor1
parents:
diff changeset
614 #define IDirectInputJoyConfig8_AddNewHardware(p,a,b) (p)->AddNewHardware(a,b)
Ritor1
parents:
diff changeset
615 #define IDirectInputJoyConfig8_OpenTypeKey(p,a,b,c) (p)->OpenTypeKey(a,b,c)
Ritor1
parents:
diff changeset
616 #define IDirectInputJoyConfig8_OpenAppStatusKey(p,a) (p)->OpenAppStatusKey(a)
Ritor1
parents:
diff changeset
617 #endif
Ritor1
parents:
diff changeset
618
Ritor1
parents:
diff changeset
619 #endif /* DIJ_RINGZERO */
Ritor1
parents:
diff changeset
620
Ritor1
parents:
diff changeset
621 /****************************************************************************
Ritor1
parents:
diff changeset
622 *
Ritor1
parents:
diff changeset
623 * Notification Messages
Ritor1
parents:
diff changeset
624 *
Ritor1
parents:
diff changeset
625 ****************************************************************************/
Ritor1
parents:
diff changeset
626
Ritor1
parents:
diff changeset
627 /* RegisterWindowMessage with this to get DirectInput notification messages */
Ritor1
parents:
diff changeset
628 #define DIRECTINPUT_NOTIFICATION_MSGSTRINGA "DIRECTINPUT_NOTIFICATION_MSGSTRING"
Ritor1
parents:
diff changeset
629 #define DIRECTINPUT_NOTIFICATION_MSGSTRINGW L"DIRECTINPUT_NOTIFICATION_MSGSTRING"
Ritor1
parents:
diff changeset
630
Ritor1
parents:
diff changeset
631 #ifdef UNICODE
Ritor1
parents:
diff changeset
632 #define DIRECTINPUT_NOTIFICATION_MSGSTRING DIRECTINPUT_NOTIFICATION_MSGSTRINGW
Ritor1
parents:
diff changeset
633 #else
Ritor1
parents:
diff changeset
634 #define DIRECTINPUT_NOTIFICATION_MSGSTRING DIRECTINPUT_NOTIFICATION_MSGSTRINGA
Ritor1
parents:
diff changeset
635 #endif
Ritor1
parents:
diff changeset
636
Ritor1
parents:
diff changeset
637 #define DIMSGWP_NEWAPPSTART 0x00000001
Ritor1
parents:
diff changeset
638 #define DIMSGWP_DX8APPSTART 0x00000002
Ritor1
parents:
diff changeset
639 #define DIMSGWP_DX8MAPPERAPPSTART 0x00000003
Ritor1
parents:
diff changeset
640
Ritor1
parents:
diff changeset
641 #endif /* DIRECTINPUT_VERSION >= 0x0800 */
Ritor1
parents:
diff changeset
642
Ritor1
parents:
diff changeset
643 #define DIAPPIDFLAG_NOTIME 0x00000001
Ritor1
parents:
diff changeset
644 #define DIAPPIDFLAG_NOSIZE 0x00000002
Ritor1
parents:
diff changeset
645
Ritor1
parents:
diff changeset
646 #define DIRECTINPUT_REGSTR_VAL_APPIDFLAGA "AppIdFlag"
Ritor1
parents:
diff changeset
647 #define DIRECTINPUT_REGSTR_KEY_LASTAPPA "MostRecentApplication"
Ritor1
parents:
diff changeset
648 #define DIRECTINPUT_REGSTR_KEY_LASTMAPAPPA "MostRecentMapperApplication"
Ritor1
parents:
diff changeset
649 #define DIRECTINPUT_REGSTR_VAL_VERSIONA "Version"
Ritor1
parents:
diff changeset
650 #define DIRECTINPUT_REGSTR_VAL_NAMEA "Name"
Ritor1
parents:
diff changeset
651 #define DIRECTINPUT_REGSTR_VAL_IDA "Id"
Ritor1
parents:
diff changeset
652 #define DIRECTINPUT_REGSTR_VAL_MAPPERA "UsesMapper"
Ritor1
parents:
diff changeset
653 #define DIRECTINPUT_REGSTR_VAL_LASTSTARTA "MostRecentStart"
Ritor1
parents:
diff changeset
654
Ritor1
parents:
diff changeset
655 #define DIRECTINPUT_REGSTR_VAL_APPIDFLAGW L"AppIdFlag"
Ritor1
parents:
diff changeset
656 #define DIRECTINPUT_REGSTR_KEY_LASTAPPW L"MostRecentApplication"
Ritor1
parents:
diff changeset
657 #define DIRECTINPUT_REGSTR_KEY_LASTMAPAPPW L"MostRecentMapperApplication"
Ritor1
parents:
diff changeset
658 #define DIRECTINPUT_REGSTR_VAL_VERSIONW L"Version"
Ritor1
parents:
diff changeset
659 #define DIRECTINPUT_REGSTR_VAL_NAMEW L"Name"
Ritor1
parents:
diff changeset
660 #define DIRECTINPUT_REGSTR_VAL_IDW L"Id"
Ritor1
parents:
diff changeset
661 #define DIRECTINPUT_REGSTR_VAL_MAPPERW L"UsesMapper"
Ritor1
parents:
diff changeset
662 #define DIRECTINPUT_REGSTR_VAL_LASTSTARTW L"MostRecentStart"
Ritor1
parents:
diff changeset
663
Ritor1
parents:
diff changeset
664 #ifdef UNICODE
Ritor1
parents:
diff changeset
665 #define DIRECTINPUT_REGSTR_VAL_APPIDFLAG DIRECTINPUT_REGSTR_VAL_APPIDFLAGW
Ritor1
parents:
diff changeset
666 #define DIRECTINPUT_REGSTR_KEY_LASTAPP DIRECTINPUT_REGSTR_KEY_LASTAPPW
Ritor1
parents:
diff changeset
667 #define DIRECTINPUT_REGSTR_KEY_LASTMAPAPP DIRECTINPUT_REGSTR_KEY_LASTMAPAPPW
Ritor1
parents:
diff changeset
668 #define DIRECTINPUT_REGSTR_VAL_VERSION DIRECTINPUT_REGSTR_VAL_VERSIONW
Ritor1
parents:
diff changeset
669 #define DIRECTINPUT_REGSTR_VAL_NAME DIRECTINPUT_REGSTR_VAL_NAMEW
Ritor1
parents:
diff changeset
670 #define DIRECTINPUT_REGSTR_VAL_ID DIRECTINPUT_REGSTR_VAL_IDW
Ritor1
parents:
diff changeset
671 #define DIRECTINPUT_REGSTR_VAL_MAPPER DIRECTINPUT_REGSTR_VAL_MAPPERW
Ritor1
parents:
diff changeset
672 #define DIRECTINPUT_REGSTR_VAL_LASTSTART DIRECTINPUT_REGSTR_VAL_LASTSTARTW
Ritor1
parents:
diff changeset
673 #else
Ritor1
parents:
diff changeset
674 #define DIRECTINPUT_REGSTR_VAL_APPIDFLAG DIRECTINPUT_REGSTR_VAL_APPIDFLAGA
Ritor1
parents:
diff changeset
675 #define DIRECTINPUT_REGSTR_KEY_LASTAPP DIRECTINPUT_REGSTR_KEY_LASTAPPA
Ritor1
parents:
diff changeset
676 #define DIRECTINPUT_REGSTR_KEY_LASTMAPAPP DIRECTINPUT_REGSTR_KEY_LASTMAPAPPA
Ritor1
parents:
diff changeset
677 #define DIRECTINPUT_REGSTR_VAL_VERSION DIRECTINPUT_REGSTR_VAL_VERSIONA
Ritor1
parents:
diff changeset
678 #define DIRECTINPUT_REGSTR_VAL_NAME DIRECTINPUT_REGSTR_VAL_NAMEA
Ritor1
parents:
diff changeset
679 #define DIRECTINPUT_REGSTR_VAL_ID DIRECTINPUT_REGSTR_VAL_IDA
Ritor1
parents:
diff changeset
680 #define DIRECTINPUT_REGSTR_VAL_MAPPER DIRECTINPUT_REGSTR_VAL_MAPPERA
Ritor1
parents:
diff changeset
681 #define DIRECTINPUT_REGSTR_VAL_LASTSTART DIRECTINPUT_REGSTR_VAL_LASTSTARTA
Ritor1
parents:
diff changeset
682 #endif
Ritor1
parents:
diff changeset
683
Ritor1
parents:
diff changeset
684
Ritor1
parents:
diff changeset
685 /****************************************************************************
Ritor1
parents:
diff changeset
686 *
Ritor1
parents:
diff changeset
687 * Return Codes
Ritor1
parents:
diff changeset
688 *
Ritor1
parents:
diff changeset
689 ****************************************************************************/
Ritor1
parents:
diff changeset
690
Ritor1
parents:
diff changeset
691 #define DIERR_NOMOREITEMS \
Ritor1
parents:
diff changeset
692 MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, ERROR_NO_MORE_ITEMS)
Ritor1
parents:
diff changeset
693
Ritor1
parents:
diff changeset
694 /*
Ritor1
parents:
diff changeset
695 * Device driver-specific codes.
Ritor1
parents:
diff changeset
696 */
Ritor1
parents:
diff changeset
697
Ritor1
parents:
diff changeset
698 #define DIERR_DRIVERFIRST 0x80040300L
Ritor1
parents:
diff changeset
699 #define DIERR_DRIVERLAST 0x800403FFL
Ritor1
parents:
diff changeset
700
Ritor1
parents:
diff changeset
701 /*
Ritor1
parents:
diff changeset
702 * Unless the specific driver has been precisely identified, no meaning
Ritor1
parents:
diff changeset
703 * should be attributed to these values other than that the driver
Ritor1
parents:
diff changeset
704 * originated the error. However, to illustrate the types of error that
Ritor1
parents:
diff changeset
705 * may be causing the failure, the PID force feedback driver distributed
Ritor1
parents:
diff changeset
706 * with DirectX 7 could return the following errors:
Ritor1
parents:
diff changeset
707 *
Ritor1
parents:
diff changeset
708 * DIERR_DRIVERFIRST + 1
Ritor1
parents:
diff changeset
709 * The requested usage was not found.
Ritor1
parents:
diff changeset
710 * DIERR_DRIVERFIRST + 2
Ritor1
parents:
diff changeset
711 * The parameter block couldn't be downloaded to the device.
Ritor1
parents:
diff changeset
712 * DIERR_DRIVERFIRST + 3
Ritor1
parents:
diff changeset
713 * PID initialization failed.
Ritor1
parents:
diff changeset
714 * DIERR_DRIVERFIRST + 4
Ritor1
parents:
diff changeset
715 * The provided values couldn't be scaled.
Ritor1
parents:
diff changeset
716 */
Ritor1
parents:
diff changeset
717
Ritor1
parents:
diff changeset
718
Ritor1
parents:
diff changeset
719 /*
Ritor1
parents:
diff changeset
720 * Device installer errors.
Ritor1
parents:
diff changeset
721 */
Ritor1
parents:
diff changeset
722
Ritor1
parents:
diff changeset
723 /*
Ritor1
parents:
diff changeset
724 * Registry entry or DLL for class installer invalid
Ritor1
parents:
diff changeset
725 * or class installer not found.
Ritor1
parents:
diff changeset
726 */
Ritor1
parents:
diff changeset
727 #define DIERR_INVALIDCLASSINSTALLER 0x80040400L
Ritor1
parents:
diff changeset
728
Ritor1
parents:
diff changeset
729 /*
Ritor1
parents:
diff changeset
730 * The user cancelled the install operation.
Ritor1
parents:
diff changeset
731 */
Ritor1
parents:
diff changeset
732 #define DIERR_CANCELLED 0x80040401L
Ritor1
parents:
diff changeset
733
Ritor1
parents:
diff changeset
734 /*
Ritor1
parents:
diff changeset
735 * The INF file for the selected device could not be
Ritor1
parents:
diff changeset
736 * found or is invalid or is damaged.
Ritor1
parents:
diff changeset
737 */
Ritor1
parents:
diff changeset
738 #define DIERR_BADINF 0x80040402L
Ritor1
parents:
diff changeset
739
Ritor1
parents:
diff changeset
740 /****************************************************************************
Ritor1
parents:
diff changeset
741 *
Ritor1
parents:
diff changeset
742 * Map files
Ritor1
parents:
diff changeset
743 *
Ritor1
parents:
diff changeset
744 ****************************************************************************/
Ritor1
parents:
diff changeset
745
Ritor1
parents:
diff changeset
746 /*
Ritor1
parents:
diff changeset
747 * Delete particular data from default map file.
Ritor1
parents:
diff changeset
748 */
Ritor1
parents:
diff changeset
749 #define DIDIFT_DELETE 0x01000000
Ritor1
parents:
diff changeset
750
Ritor1
parents:
diff changeset
751 #ifdef __cplusplus
Ritor1
parents:
diff changeset
752 };
Ritor1
parents:
diff changeset
753 #endif
Ritor1
parents:
diff changeset
754
Ritor1
parents:
diff changeset
755 #endif /* __DINPUTD_INCLUDED__ */