ReactOS 0.4.15-dev-8231-g29a56f3
dd.c File Reference
#include <win32k.h>
#include <debug.h>
Include dependency graph for dd.c:

Go to the source code of this file.

Functions

DWORD APIENTRY NtGdiDdCreateSurface (HANDLE hDirectDrawLocal, HANDLE *hSurface, DDSURFACEDESC *puSurfaceDescription, DD_SURFACE_GLOBAL *puSurfaceGlobalData, DD_SURFACE_LOCAL *puSurfaceLocalData, DD_SURFACE_MORE *puSurfaceMoreData, PDD_CREATESURFACEDATA puCreateSurfaceData, HANDLE *puhSurface)
 
DWORD APIENTRY NtGdiDdWaitForVerticalBlank (HANDLE hDirectDraw, PDD_WAITFORVERTICALBLANKDATA puWaitForVerticalBlankData)
 
DWORD APIENTRY NtGdiDdCanCreateSurface (HANDLE hDirectDrawLocal, PDD_CANCREATESURFACEDATA puCanCreateSurfaceData)
 
DWORD APIENTRY NtGdiDdGetScanLine (HANDLE hDirectDrawLocal, PDD_GETSCANLINEDATA puGetScanLineData)
 
DWORD APIENTRY NtGdiDdCreateSurfaceEx (HANDLE hDirectDraw, HANDLE hSurface, DWORD dwSurfaceHandle)
 

Function Documentation

◆ NtGdiDdCanCreateSurface()

DWORD APIENTRY NtGdiDdCanCreateSurface ( HANDLE  hDirectDrawLocal,
PDD_CANCREATESURFACEDATA  puCanCreateSurfaceData 
)

Definition at line 68 of file dd.c.

70{
72
73 if (pfnDdCanCreateSurface == NULL)
74 {
75 DPRINT1("Warning: no pfnDdCanCreateSurface\n");
77 }
78
79 DPRINT("Calling dxg.sys pfnDdCanCreateSurface\n");
80
81 return pfnDdCanCreateSurface(hDirectDrawLocal,puCanCreateSurfaceData);
82}
#define DPRINT1
Definition: precomp.h:8
#define DDHAL_DRIVER_NOTHANDLED
Definition: ddrawi.h:320
#define NULL
Definition: types.h:112
#define DXG_INDEX_DxDdCanCreateSurface
Definition: dxg.h:22
DWORD(APIENTRY * PGD_DDCANCREATESURFACE)(HANDLE hDirectDrawLocal, PDD_CANCREATESURFACEDATA puCanCreateSurfaceData)
Definition: intddraw.h:82
#define DPRINT
Definition: sndvol32.h:73
DRVFN gpDxFuncs[DXG_INDEX_DxDdIoctl+1]
Definition: ddraw.c:24

◆ NtGdiDdCreateSurface()

DWORD APIENTRY NtGdiDdCreateSurface ( HANDLE  hDirectDrawLocal,
HANDLE hSurface,
DDSURFACEDESC puSurfaceDescription,
DD_SURFACE_GLOBAL puSurfaceGlobalData,
DD_SURFACE_LOCAL puSurfaceLocalData,
DD_SURFACE_MORE puSurfaceMoreData,
PDD_CREATESURFACEDATA  puCreateSurfaceData,
HANDLE puhSurface 
)

Definition at line 21 of file dd.c.

29{
31
32 if (pfnDdCreateSurface == NULL)
33 {
34 DPRINT1("Warning: no pfnDdCreateSurface\n");
36 }
37
38 DPRINT("Calling dxg.sys pfnDdCreateSurface\n");
39 return pfnDdCreateSurface(hDirectDrawLocal,hSurface,puSurfaceDescription,puSurfaceGlobalData,
40 puSurfaceLocalData,puSurfaceMoreData,puCreateSurfaceData,puhSurface);
41}
#define DXG_INDEX_DxDdCreateSurface
Definition: dxg.h:27
DWORD(APIENTRY * PGD_DDCREATESURFACE)(HANDLE, HANDLE *, DDSURFACEDESC *, DD_SURFACE_GLOBAL *, DD_SURFACE_LOCAL *, DD_SURFACE_MORE *, PDD_CREATESURFACEDATA, HANDLE *)
Definition: intddraw.h:80

◆ NtGdiDdCreateSurfaceEx()

DWORD APIENTRY NtGdiDdCreateSurfaceEx ( HANDLE  hDirectDraw,
HANDLE  hSurface,
DWORD  dwSurfaceHandle 
)

Definition at line 116 of file dd.c.

119{
121
122 if (pfnDdCreateSurfaceEx == NULL)
123 {
124 DPRINT1("Warning: no pfnDdCreateSurfaceEx\n");
126 }
127
128 DPRINT("Calling dxg.sys pfnDdCreateSurfaceEx\n");
129 return pfnDdCreateSurfaceEx(hDirectDraw,hSurface,dwSurfaceHandle);
130}
#define DXG_INDEX_DxDdCreateSurfaceEx
Definition: dxg.h:62
DWORD(APIENTRY * PGD_DXDDCREATESURFACEEX)(HANDLE, HANDLE, DWORD)
Definition: intddraw.h:84

◆ NtGdiDdGetScanLine()

DWORD APIENTRY NtGdiDdGetScanLine ( HANDLE  hDirectDrawLocal,
PDD_GETSCANLINEDATA  puGetScanLineData 
)

Definition at line 89 of file dd.c.

91{
93
94 if (pfnDdGetScanLine == NULL)
95 {
96 DPRINT1("Warning: no pfnDdGetScanLine\n");
98 }
99
100 DPRINT("Calling dxg.sys pfnDdGetScanLine\n");
101
102 return pfnDdGetScanLine(hDirectDrawLocal,puGetScanLineData);
103}
#define DXG_INDEX_DxDdGetScanLine
Definition: dxg.h:49
DWORD(APIENTRY * PGD_DXDDGETSCANLINE)(HANDLE, PDD_GETSCANLINEDATA)
Definition: intddraw.h:83

◆ NtGdiDdWaitForVerticalBlank()

DWORD APIENTRY NtGdiDdWaitForVerticalBlank ( HANDLE  hDirectDraw,
PDD_WAITFORVERTICALBLANKDATA  puWaitForVerticalBlankData 
)

Definition at line 48 of file dd.c.

50{
52
53 if (pfnDdWaitForVerticalBlank == NULL)
54 {
55 DPRINT1("Warning: no pfnDdWaitForVerticalBlank\n");
57 }
58
59 DPRINT("Calling dxg.sys pfnDdWaitForVerticalBlank\n");
60 return pfnDdWaitForVerticalBlank(hDirectDraw, puWaitForVerticalBlankData);
61}
#define DXG_INDEX_DxDdWaitForVerticalBlank
Definition: dxg.h:69
DWORD(APIENTRY * PGD_DXDDWAITFORVERTICALBLANK)(HANDLE, PDD_WAITFORVERTICALBLANKDATA)
Definition: intddraw.h:81