More DirectDraw groundwork by Peter Bajusz
[reactos.git] / reactos / subsys / win32k / ntddraw / stubs.c
1 /*
2 *
3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS kernel
5 * PURPOSE: Native DirectDraw stubs
6 * FILE: subsys/win32k/ntddraw/stubs.c
7 * PROGRAMER: Peter Bajusz (hyp-x@stormregion.com)
8 * REVISION HISTORY:
9 * 25-10-2003 PB Created
10 */
11 #include <ddk/ntddk.h>
12 #include <win32k/win32k.h>
13
14 #define NDEBUG
15 #include <debug.h>
16
17
18 BOOL STDCALL NtGdiD3dContextCreate(
19 HANDLE hDirectDrawLocal,
20 HANDLE hSurfColor,
21 HANDLE hSurfZ,
22 PD3DNTHAL_CONTEXTCREATEDATA pdcci
23 )
24 {
25 UNIMPLEMENTED
26
27 return 0;
28 }
29
30 DWORD STDCALL NtGdiD3dContextDestroy(
31 PD3DNTHAL_CONTEXTDESTROYDATA pContextDestroyData
32 )
33 {
34 UNIMPLEMENTED
35
36 return 0;
37 }
38
39 DWORD STDCALL NtGdiD3dContextDestroyAll(VOID)
40 {
41 /* This entry point is not supported on NT5 and ROS */
42 UNIMPLEMENTED
43
44 return 0;
45 }
46
47 DWORD STDCALL NtGdiD3dDrawPrimitives2(
48 HANDLE hCmdBuf,
49 HANDLE hVBuf,
50 PD3DNTHAL_DRAWPRIMITIVES2DATA pded,
51 FLATPTR *pfpVidMemCmd,
52 DWORD *pdwSizeCmd,
53 FLATPTR *pfpVidMemVtx,
54 DWORD *pdwSizeVtx
55 )
56 {
57 UNIMPLEMENTED
58
59 return 0;
60 }
61
62 DWORD STDCALL NtGdiD3dValidateTextureStageState(
63 PD3DNTHAL_VALIDATETEXTURESTAGESTATEDATA pData
64 )
65 {
66 UNIMPLEMENTED
67
68 return 0;
69 }
70
71 DWORD STDCALL NtGdiDdAddAttachedSurface(
72 HANDLE hSurface,
73 HANDLE hSurfaceAttached,
74 PDD_ADDATTACHEDSURFACEDATA puAddAttachedSurfaceData
75 )
76 {
77 UNIMPLEMENTED
78
79 return 0;
80 }
81
82 DWORD STDCALL NtGdiDdAlphaBlt(VOID)
83 {
84 UNIMPLEMENTED
85
86 return 0;
87 }
88
89 BOOL STDCALL NtGdiDdAttachSurface(
90 HANDLE hSurfaceFrom,
91 HANDLE hSurfaceTo
92 )
93 {
94 UNIMPLEMENTED
95
96 return 0;
97 }
98
99 DWORD STDCALL NtGdiDdBeginMoCompFrame(
100 HANDLE hMoComp,
101 PDD_BEGINMOCOMPFRAMEDATA puBeginFrameData
102 )
103 {
104 UNIMPLEMENTED
105
106 return 0;
107 }
108
109 DWORD STDCALL NtGdiDdBlt(
110 HANDLE hSurfaceDest,
111 HANDLE hSurfaceSrc,
112 PDD_BLTDATA puBltData
113 )
114 {
115 UNIMPLEMENTED
116
117 return 0;
118 }
119
120 DWORD STDCALL NtGdiDdCanCreateD3DBuffer(
121 HANDLE hDirectDraw,
122 PDD_CANCREATESURFACEDATA puCanCreateSurfaceData
123 )
124 {
125 UNIMPLEMENTED
126
127 return 0;
128 }
129
130 DWORD STDCALL NtGdiDdCanCreateSurface(
131 HANDLE hDirectDraw,
132 PDD_CANCREATESURFACEDATA puCanCreateSurfaceData
133 )
134 {
135 UNIMPLEMENTED
136
137 return 0;
138 }
139
140 DWORD STDCALL NtGdiDdColorControl(
141 HANDLE hSurface,
142 PDD_COLORCONTROLDATA puColorControlData
143 )
144 {
145 UNIMPLEMENTED
146
147 return 0;
148 }
149
150 DWORD STDCALL NtGdiDdCreateD3DBuffer(
151 HANDLE hDirectDraw,
152 HANDLE *hSurface,
153 DDSURFACEDESC *puSurfaceDescription,
154 DD_SURFACE_GLOBAL *puSurfaceGlobalData,
155 DD_SURFACE_LOCAL *puSurfaceLocalData,
156 DD_SURFACE_MORE *puSurfaceMoreData,
157 PDD_CREATESURFACEDATA puCreateSurfaceData,
158 HANDLE *puhSurface
159 )
160 {
161 UNIMPLEMENTED
162
163 return 0;
164 }
165
166 /*
167 HANDLE STDCALL NtGdiDdCreateDirectDrawObject(
168 HDC hdc
169 )
170 {
171 UNIMPLEMENTED
172
173 return 0;
174 }
175 */
176
177 HANDLE STDCALL NtGdiDdCreateMoComp(
178 HANDLE hDirectDraw,
179 PDD_CREATEMOCOMPDATA puCreateMoCompData
180 )
181 {
182 UNIMPLEMENTED
183
184 return 0;
185 }
186
187 DWORD STDCALL NtGdiDdCreateSurface(
188 HANDLE hDirectDraw,
189 HANDLE *hSurface,
190 DDSURFACEDESC *puSurfaceDescription,
191 DD_SURFACE_GLOBAL *puSurfaceGlobalData,
192 DD_SURFACE_LOCAL *puSurfaceLocalData,
193 DD_SURFACE_MORE *puSurfaceMoreData,
194 PDD_CREATESURFACEDATA puCreateSurfaceData,
195 HANDLE *puhSurface
196 )
197 {
198 UNIMPLEMENTED
199
200 return 0;
201 }
202
203 DWORD STDCALL NtGdiDdCreateSurfaceEx(
204 HANDLE hDirectDraw,
205 HANDLE hSurface,
206 DWORD dwSurfaceHandle
207 )
208 {
209 UNIMPLEMENTED
210
211 return 0;
212 }
213
214 /*
215 HANDLE STDCALL NtGdiDdCreateSurfaceObject(
216 HANDLE hDirectDrawLocal,
217 HANDLE hSurface,
218 PDD_SURFACE_LOCAL puSurfaceLocal,
219 PDD_SURFACE_MORE puSurfaceMore,
220 PDD_SURFACE_GLOBAL puSurfaceGlobal,
221 BOOL bComplete
222 )
223 {
224 UNIMPLEMENTED
225
226 return 0;
227 }
228
229 BOOL STDCALL NtGdiDdDeleteDirectDrawObject(
230 HANDLE hDirectDrawLocal
231 )
232 {
233 UNIMPLEMENTED
234
235 return 0;
236 }
237
238 BOOL STDCALL NtGdiDdDeleteSurfaceObject(
239 HANDLE hSurface
240 )
241 {
242 UNIMPLEMENTED
243
244 return 0;
245 }
246 */
247
248 DWORD STDCALL NtGdiDdDestroyD3DBuffer(
249 HANDLE hSurface
250 )
251 {
252 UNIMPLEMENTED
253
254 return 0;
255 }
256
257 DWORD STDCALL NtGdiDdDestroyMoComp(
258 HANDLE hMoComp,
259 PDD_DESTROYMOCOMPDATA puBeginFrameData
260 )
261 {
262 UNIMPLEMENTED
263
264 return 0;
265 }
266
267 DWORD STDCALL NtGdiDdDestroySurface(
268 HANDLE hSurface,
269 BOOL bRealDestroy
270 )
271 {
272 UNIMPLEMENTED
273
274 return 0;
275 }
276
277 DWORD STDCALL NtGdiDdEndMoCompFrame(
278 HANDLE hMoComp,
279 PDD_ENDMOCOMPFRAMEDATA puEndFrameData
280 )
281 {
282 UNIMPLEMENTED
283
284 return 0;
285 }
286
287 DWORD STDCALL NtGdiDdFlip(
288 HANDLE hSurfaceCurrent,
289 HANDLE hSurfaceTarget,
290 HANDLE hSurfaceCurrentLeft,
291 HANDLE hSurfaceTargetLeft,
292 PDD_FLIPDATA puFlipData
293 )
294 {
295 UNIMPLEMENTED
296
297 return 0;
298 }
299
300 DWORD STDCALL NtGdiDdFlipToGDISurface(
301 HANDLE hDirectDraw,
302 PDD_FLIPTOGDISURFACEDATA puFlipToGDISurfaceData
303 )
304 {
305 UNIMPLEMENTED
306
307 return 0;
308 }
309
310 DWORD STDCALL NtGdiDdGetAvailDriverMemory(
311 HANDLE hDirectDraw,
312 PDD_GETAVAILDRIVERMEMORYDATA puGetAvailDriverMemoryData
313 )
314 {
315 UNIMPLEMENTED
316
317 return 0;
318 }
319
320 DWORD STDCALL NtGdiDdGetBltStatus(
321 HANDLE hSurface,
322 PDD_GETBLTSTATUSDATA puGetBltStatusData
323 )
324 {
325 UNIMPLEMENTED
326
327 return 0;
328 }
329
330 HDC STDCALL NtGdiDdGetDC(
331 HANDLE hSurface,
332 PALETTEENTRY *puColorTable
333 )
334 {
335 UNIMPLEMENTED
336
337 return 0;
338 }
339
340 DWORD STDCALL NtGdiDdGetDriverInfo(
341 HANDLE hDirectDraw,
342 PDD_GETDRIVERINFODATA puGetDriverInfoData
343 )
344 {
345 UNIMPLEMENTED
346
347 return 0;
348 }
349
350 DWORD STDCALL NtGdiDdGetDriverState(
351 PDD_GETDRIVERSTATEDATA pdata
352 )
353 {
354 UNIMPLEMENTED
355
356 return 0;
357 }
358
359 DWORD STDCALL NtGdiDdGetDxHandle(
360 HANDLE hDirectDraw,
361 HANDLE hSurface,
362 BOOL bRelease
363 )
364 {
365 UNIMPLEMENTED
366
367 return 0;
368 }
369
370 DWORD STDCALL NtGdiDdGetFlipStatus(
371 HANDLE hSurface,
372 PDD_GETFLIPSTATUSDATA puGetFlipStatusData
373 )
374 {
375 UNIMPLEMENTED
376
377 return 0;
378 }
379
380 DWORD STDCALL NtGdiDdGetInternalMoCompInfo(
381 HANDLE hDirectDraw,
382 PDD_GETINTERNALMOCOMPDATA puGetInternalData
383 )
384 {
385 UNIMPLEMENTED
386
387 return 0;
388 }
389
390 DWORD STDCALL NtGdiDdGetMoCompBuffInfo(
391 HANDLE hDirectDraw,
392 PDD_GETMOCOMPCOMPBUFFDATA puGetBuffData
393 )
394 {
395 UNIMPLEMENTED
396
397 return 0;
398 }
399
400 DWORD STDCALL NtGdiDdGetMoCompFormats(
401 HANDLE hDirectDraw,
402 PDD_GETMOCOMPFORMATSDATA puGetMoCompFormatsData
403 )
404 {
405 UNIMPLEMENTED
406
407 return 0;
408 }
409
410 DWORD STDCALL NtGdiDdGetMoCompGuids(
411 HANDLE hDirectDraw,
412 PDD_GETMOCOMPGUIDSDATA puGetMoCompGuidsData
413 )
414 {
415 UNIMPLEMENTED
416
417 return 0;
418 }
419
420 DWORD STDCALL NtGdiDdGetScanLine(
421 HANDLE hDirectDraw,
422 PDD_GETSCANLINEDATA puGetScanLineData
423 )
424 {
425 UNIMPLEMENTED
426
427 return 0;
428 }
429
430 DWORD STDCALL NtGdiDdLock(
431 HANDLE hSurface,
432 PDD_LOCKDATA puLockData,
433 HDC hdcClip
434 )
435 {
436 UNIMPLEMENTED
437
438 return 0;
439 }
440
441 DWORD STDCALL NtGdiDdLockD3D(
442 HANDLE hSurface,
443 PDD_LOCKDATA puLockData
444 )
445 {
446 UNIMPLEMENTED
447
448 return 0;
449 }
450
451 /*
452 BOOL STDCALL NtGdiDdQueryDirectDrawObject(
453 HANDLE hDirectDrawLocal,
454 DD_HALINFO *pHalInfo,
455 DWORD *pCallBackFlags,
456 PD3DNTHAL_CALLBACKS puD3dCallbacks,
457 PD3DNTHAL_GLOBALDRIVERDATA puD3dDriverData,
458 PDD_D3DBUFCALLBACKS puD3dBufferCallbacks,
459 LPDDSURFACEDESC puD3dTextureFormats,
460 DWORD *puNumHeaps,
461 VIDEOMEMORY *puvmList,
462 DWORD *puNumFourCC,
463 DWORD *puFourCC
464 )
465 {
466 UNIMPLEMENTED
467
468 return 0;
469 }
470 */
471
472 DWORD STDCALL NtGdiDdQueryMoCompStatus(
473 HANDLE hMoComp,
474 PDD_QUERYMOCOMPSTATUSDATA puQueryMoCompStatusData
475 )
476 {
477 UNIMPLEMENTED
478
479 return 0;
480 }
481
482 BOOL STDCALL NtGdiDdReenableDirectDrawObject(
483 HANDLE hDirectDrawLocal,
484 BOOL *pubNewMode
485 )
486 {
487 UNIMPLEMENTED
488
489 return 0;
490 }
491
492 BOOL STDCALL NtGdiDdReleaseDC(
493 HANDLE hSurface
494 )
495 {
496 UNIMPLEMENTED
497
498 return 0;
499 }
500
501 DWORD STDCALL NtGdiDdRenderMoComp(
502 HANDLE hMoComp,
503 PDD_RENDERMOCOMPDATA puRenderMoCompData
504 )
505 {
506 UNIMPLEMENTED
507
508 return 0;
509 }
510
511 BOOL STDCALL NtGdiDdResetVisrgn(
512 HANDLE hSurface,
513 HWND hwnd
514 )
515 {
516 UNIMPLEMENTED
517
518 return 0;
519 }
520
521 DWORD STDCALL NtGdiDdSetColorKey(
522 HANDLE hSurface,
523 PDD_SETCOLORKEYDATA puSetColorKeyData
524 )
525 {
526 UNIMPLEMENTED
527
528 return 0;
529 }
530
531 DWORD STDCALL NtGdiDdSetExclusiveMode(
532 HANDLE hDirectDraw,
533 PDD_SETEXCLUSIVEMODEDATA puSetExclusiveModeData
534 )
535 {
536 UNIMPLEMENTED
537
538 return 0;
539 }
540
541 BOOL STDCALL NtGdiDdSetGammaRamp(
542 HANDLE hDirectDraw,
543 HDC hdc,
544 LPVOID lpGammaRamp
545 )
546 {
547 UNIMPLEMENTED
548
549 return 0;
550 }
551
552 DWORD STDCALL NtGdiDdSetOverlayPosition(
553 HANDLE hSurfaceSource,
554 HANDLE hSurfaceDestination,
555 PDD_SETOVERLAYPOSITIONDATA puSetOverlayPositionData
556 )
557 {
558 UNIMPLEMENTED
559
560 return 0;
561 }
562
563 VOID STDCALL NtGdiDdUnattachSurface(
564 HANDLE hSurface,
565 HANDLE hSurfaceAttached
566 )
567 {
568 UNIMPLEMENTED
569 }
570
571 DWORD STDCALL NtGdiDdUnlock(
572 HANDLE hSurface,
573 PDD_UNLOCKDATA puUnlockData
574 )
575 {
576 UNIMPLEMENTED
577
578 return 0;
579 }
580
581 DWORD STDCALL NtGdiDdUnlockD3D(
582 HANDLE hSurface,
583 PDD_UNLOCKDATA puUnlockData
584 )
585 {
586 UNIMPLEMENTED
587
588 return 0;
589 }
590
591 DWORD STDCALL NtGdiDdUpdateOverlay(
592 HANDLE hSurfaceDestination,
593 HANDLE hSurfaceSource,
594 PDD_UPDATEOVERLAYDATA puUpdateOverlayData
595 )
596 {
597 UNIMPLEMENTED
598
599 return 0;
600 }
601
602 DWORD STDCALL NtGdiDdWaitForVerticalBlank(
603 HANDLE hDirectDraw,
604 PDD_WAITFORVERTICALBLANKDATA puWaitForVerticalBlankData
605 )
606 {
607 UNIMPLEMENTED
608
609 return 0;
610 }
611
612 /* EOF */