ReactOS 0.4.15-dev-7953-g1f49173
eng.c File Reference
#include <win32k.h>
#include <debug.h>
Include dependency graph for eng.c:

Go to the source code of this file.

Functions

FLATPTR APIENTRY HeapVidMemAllocAligned (LPVIDMEM lpVidMem, DWORD dwWidth, DWORD dwHeight, LPSURFACEALIGNMENT lpAlignment, LPLONG lpNewPitch)
 
VOID APIENTRY VidMemFree (LPVMEMHEAP pvmh, FLATPTR ptr)
 
_Must_inspect_result_ _Ret_opt_bytecount_ (cjMemSize)
 
VOID APIENTRY EngFreePrivateUserMem (PDD_SURFACE_LOCAL psl, PVOID pv)
 
HRESULT APIENTRY EngDxIoctl (ULONG ulIoctl, PVOID pBuffer, ULONG ulBufferSize)
 
PDD_SURFACE_LOCAL APIENTRY EngLockDirectDrawSurface (HANDLE hSurface)
 
BOOL APIENTRY EngUnlockDirectDrawSurface (PDD_SURFACE_LOCAL pSurface)
 

Function Documentation

◆ _Ret_opt_bytecount_()

_Must_inspect_result_ _Ret_opt_bytecount_ ( cjMemSize  )

Definition at line 64 of file eng.c.

73{
75
76 if (pfnEngAllocPrivateUserMem == NULL)
77 {
78 DPRINT1("Warning: no pfnEngAllocPrivateUserMem\n");
80 }
81
82 DPRINT("Calling dxg.sys pfnEngAllocPrivateUserMem\n");
83 return pfnEngAllocPrivateUserMem(psl, cjMemSize, ulTag);
84}
#define DPRINT1
Definition: precomp.h:8
#define DDHAL_DRIVER_NOTHANDLED
Definition: ddrawi.h:320
#define NULL
Definition: types.h:112
#define DXG_INDEX_DxDdAllocPrivateUserMem
Definition: dxg.h:96
PVOID(APIENTRY * PGD_ENGALLOCPRIVATEUSERMEM)(PDD_SURFACE_LOCAL, SIZE_T, ULONG)
Definition: intddraw.h:105
#define DPRINT
Definition: sndvol32.h:71
DRVFN gpDxFuncs[DXG_INDEX_DxDdIoctl+1]
Definition: ddraw.c:24
_In_ ULONG _In_ ULONG ulTag
Definition: winddi.h:3942
_Must_inspect_result_ _In_ ULONG cjMemSize
Definition: winddi.h:1381

◆ EngDxIoctl()

HRESULT APIENTRY EngDxIoctl ( ULONG  ulIoctl,
PVOID  pBuffer,
ULONG  ulBufferSize 
)

Definition at line 133 of file eng.c.

136{
138 DWORD retVal = DDERR_UNSUPPORTED;
139
140 DPRINT("Calling dxg.sys pfnEngDxIoctl\n");
141 if (pfnEngDxIoctl != NULL)
142 {
143 retVal = pfnEngDxIoctl(ulIoctl, pBuffer, ulBufferSize);
144 }
145
146 return retVal;
147}
#define DXG_INDEX_DxDdIoctl
Definition: dxg.h:100
DWORD(NTAPI * PGD_ENGDXIOCTL)(ULONG, PVOID, ULONG)
Definition: dxg.h:214
unsigned long DWORD
Definition: ntddk_ex.h:95
PVOID pBuffer
#define DDERR_UNSUPPORTED
Definition: ddraw.h:127

◆ EngFreePrivateUserMem()

VOID APIENTRY EngFreePrivateUserMem ( PDD_SURFACE_LOCAL  psl,
PVOID  pv 
)

Definition at line 91 of file eng.c.

93{
95
96 if (pfnEngFreePrivateUserMem == NULL)
97 {
98 DPRINT1("Warning: no pfnEngFreePrivateUserMem\n");
99 }
100 else
101 {
102 DPRINT("Calling dxg.sys pfnEngFreePrivateUserMem\n");
103 pfnEngFreePrivateUserMem(psl, pv);
104 }
105}
#define DXG_INDEX_DxDdFreePrivateUserMem
Definition: dxg.h:97
VOID(APIENTRY * PGD_ENGFREEPRIVATEUSERMEM)(PDD_SURFACE_LOCAL, PVOID)
Definition: intddraw.h:106

◆ EngLockDirectDrawSurface()

PDD_SURFACE_LOCAL APIENTRY EngLockDirectDrawSurface ( HANDLE  hSurface)

Definition at line 167 of file eng.c.

168{
170 PDD_SURFACE_LOCAL retVal = NULL;
171
172 DPRINT("Calling dxg.sys pfnEngLockDirectDrawSurface\n");
173 if (pfnEngLockDirectDrawSurface != NULL)
174 {
175 retVal = pfnEngLockDirectDrawSurface(hSurface);
176 }
177
178 return retVal;
179}
#define DXG_INDEX_DxDdLockDirectDrawSurface
Definition: dxg.h:98
PDD_SURFACE_LOCAL(APIENTRY * PGD_ENGLOCKDIRECTDRAWSURFACE)(HANDLE)
Definition: intddraw.h:107

◆ EngUnlockDirectDrawSurface()

BOOL APIENTRY EngUnlockDirectDrawSurface ( PDD_SURFACE_LOCAL  pSurface)

Definition at line 199 of file eng.c.

200{
202 BOOL retVal = FALSE;
203
204 DPRINT("Calling dxg.sys pfnEngUnlockDirectDrawSurface\n");
205 if (pfnEngUnlockDirectDrawSurface != NULL)
206 {
207 retVal = pfnEngUnlockDirectDrawSurface(pSurface);
208 }
209
210 return retVal;
211}
#define FALSE
Definition: types.h:117
#define DXG_INDEX_DxDdUnlockDirectDrawSurface
Definition: dxg.h:99
unsigned int BOOL
Definition: ntddk_ex.h:94
BOOL(APIENTRY * PGD_ENGUNLOCKDIRECTDRAWSURFACE)(PDD_SURFACE_LOCAL)
Definition: intddraw.h:108
_In_ DD_SURFACE_LOCAL * pSurface
Definition: winddi.h:3481

◆ HeapVidMemAllocAligned()

FLATPTR APIENTRY HeapVidMemAllocAligned ( LPVIDMEM  lpVidMem,
DWORD  dwWidth,
DWORD  dwHeight,
LPSURFACEALIGNMENT  lpAlignment,
LPLONG  lpNewPitch 
)

Definition at line 21 of file eng.c.

26{
28
29 if (pfnHeapVidMemAllocAligned == NULL)
30 {
31 DPRINT1("Warning: no pfnHeapVidMemAllocAligned\n");
32 return 0;
33 }
34
35 DPRINT("Calling dxg.sys pfnHeapVidMemAllocAligned\n");
36 return pfnHeapVidMemAllocAligned(lpVidMem, dwWidth, dwHeight, lpAlignment, lpNewPitch);
37}
static const WCHAR dwWidth[]
Definition: provider.c:62
static const WCHAR dwHeight[]
Definition: provider.c:63
#define DXG_INDEX_DxDdHeapVidMemAllocAligned
Definition: dxg.h:94
FLATPTR(APIENTRY * PGD_HEAPVIDMEMALLOCALIGNED)(LPVIDMEM, DWORD, DWORD, LPSURFACEALIGNMENT, LPLONG)
Definition: intddraw.h:103

◆ VidMemFree()

VOID APIENTRY VidMemFree ( LPVMEMHEAP  pvmh,
FLATPTR  ptr 
)

Definition at line 44 of file eng.c.

46{
48
49 if (pfnVidMemFree == NULL)
50 {
51 DPRINT1("Warning: no pfnVidMemFree\n");
52 }
53 else
54 {
55 DPRINT("Calling dxg.sys pfnVidMemFree\n");
56 pfnVidMemFree(pvmh, ptr);
57 }
58}
#define DXG_INDEX_DxDdHeapVidMemFree
Definition: dxg.h:95
VOID(APIENTRY * PGD_VIDMEMFREE)(LPVMEMHEAP, FLATPTR)
Definition: intddraw.h:104
static PVOID ptr
Definition: dispmode.c:27