25{
27
29
31
33 {
34 if ((!pDriverCaps) && (!pHELCaps))
35 {
38 }
39
40
41
42
43
44 if ( (pDriverCaps) &&
45 (pDriverCaps->dwSize !=
sizeof(
DDCAPS_DX1) ) &&
46 (pDriverCaps->dwSize !=
sizeof(
DDCAPS_DX3) ) &&
47 (pDriverCaps->dwSize !=
sizeof(
DDCAPS_DX5) ) &&
49 {
52 }
53
54
55
56
57
58 if ( (pHELCaps) &&
63 {
66 }
67
68 if (pDriverCaps)
69 {
70
73
76
78
79 switch (pDriverCaps->dwSize)
80 {
82 {
84
86 {
88 }
89
93
95 }
96 break;
97
99 {
101
103 {
105 }
106
110
112 }
113 break;
114
116 {
118
119
120
121
122
123
124
126
128 {
130 }
131
135
137 }
138 break;
139
140
142 {
144
145
146
147
148
149
150
152
154 {
156 }
157
160
166
168
169 }
170 break;
171
172 default:
174 break;
175 }
176 }
177
178 if (pHELCaps)
179 {
180
182
185
187 {
189 {
191
193 {
195 }
196
200
202 }
203 break;
204
206 {
208
210 {
212 }
213
217
219 }
220 break;
221
223 {
225
226
227
228
229
230
231
233
235 {
237 }
238
242
244 }
245 break;
246
247
249 {
251
252
253
254
255
256
257
259
261 {
263 }
264
267
273
275
276 }
277 break;
278
279 default:
281 break;
282 }
283 }
284
285 }
287 {
289 }
291
293 return retVal;
294}
struct _DDCORECAPS * LPDDCORECAPS
HRESULT WINAPI Main_DirectDraw_GetAvailableVidMem4(LPDDRAWI_DIRECTDRAW_INT This, LPDDSCAPS2 ddscaps, LPDWORD dwTotal, LPDWORD dwFree)
#define EXCEPTION_EXECUTE_HANDLER
#define memcpy(s1, s2, n)
#define _SEH2_EXCEPT(...)
#define DX_WINDBG_trace()
struct _DDCAPS_DX1 DDCAPS_DX1
struct _DDCAPS_DX3 DDCAPS_DX3
struct _DDCAPS_DX7 * LPDDCAPS_DX7
struct _DDCAPS_DX3 * LPDDCAPS_DX3
struct _DDCAPS_DX5 * LPDDCAPS_DX5
struct _DDCAPS_DX1 * LPDDCAPS_DX1
#define DDERR_INVALIDPARAMS
struct _DDCAPS_DX5 DDCAPS_DX5
struct _DDCAPS_DX7 DDCAPS_DX7
void WINAPI LeaveCriticalSection(LPCRITICAL_SECTION)
void WINAPI EnterCriticalSection(LPCRITICAL_SECTION)