annotate lib/legacy_dx/dinputd.h @ 201:11a199790ce0

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