28 if (pfnHeapVidMemAllocAligned ==
NULL)
30 DPRINT1(
"Warning: no pfnHeapVidMemAllocAligned\n");
34 DPRINT1(
"Calling dxg.sys pfnHeapVidMemAllocAligned\n");
35 return pfnHeapVidMemAllocAligned(lpVidMem,
dwWidth,
dwHeight, lpAlignment, lpNewPitch);
48 if (pfnVidMemFree ==
NULL)
50 DPRINT1(
"Warning: no pfnVidMemFree\n");
54 DPRINT1(
"Calling dxg.sys pfnVidMemFree\n");
55 pfnVidMemFree(pvmh,
ptr);
68EngAllocPrivateUserMem(
75 if (pfnEngAllocPrivateUserMem ==
NULL)
77 DPRINT1(
"Warning: no pfnEngAllocPrivateUserMem\n");
81 DPRINT1(
"Calling dxg.sys pfnEngAllocPrivateUserMem\n");
95 if (pfnEngFreePrivateUserMem ==
NULL)
97 DPRINT1(
"Warning: no pfnEngFreePrivateUserMem\n");
101 DPRINT1(
"Calling dxg.sys pfnEngFreePrivateUserMem\n");
102 pfnEngFreePrivateUserMem(psl, pv);
139 DPRINT1(
"Calling dxg.sys pfnEngDxIoctl\n");
141 if (pfnEngDxIoctl !=
NULL)
143 retVal = pfnEngDxIoctl(ulIoctl,
pBuffer, ulBufferSize);
172 DPRINT1(
"Calling dxg.sys pfnEngLockDirectDrawSurface\n");
174 if (pfnEngLockDirectDrawSurface !=
NULL)
176 retVal = pfnEngLockDirectDrawSurface(hSurface);
206 DPRINT1(
"Calling dxg.sys pfnEngUnlockDirectDrawSurface\n");
208 if (pfnEngUnlockDirectDrawSurface !=
NULL)
210 retVal = pfnEngUnlockDirectDrawSurface(
pSurface);
#define DDHAL_DRIVER_NOTHANDLED
static const WCHAR dwWidth[]
static const WCHAR dwHeight[]
#define __drv_allocatesMem(kind)
#define DXG_INDEX_DxDdFreePrivateUserMem
#define DXG_INDEX_DxDdIoctl
#define DXG_INDEX_DxDdHeapVidMemFree
#define DXG_INDEX_DxDdAllocPrivateUserMem
DWORD(NTAPI * PGD_ENGDXIOCTL)(ULONG, PVOID, ULONG)
#define DXG_INDEX_DxDdUnlockDirectDrawSurface
#define DXG_INDEX_DxDdHeapVidMemAllocAligned
#define DXG_INDEX_DxDdLockDirectDrawSurface
PDD_SURFACE_LOCAL(APIENTRY * PGD_ENGLOCKDIRECTDRAWSURFACE)(HANDLE)
BOOL(APIENTRY * PGD_ENGUNLOCKDIRECTDRAWSURFACE)(PDD_SURFACE_LOCAL)
VOID(APIENTRY * PGD_ENGFREEPRIVATEUSERMEM)(PDD_SURFACE_LOCAL, PVOID)
FLATPTR(APIENTRY * PGD_HEAPVIDMEMALLOCALIGNED)(LPVIDMEM, DWORD, DWORD, LPSURFACEALIGNMENT, LPLONG)
VOID(APIENTRY * PGD_VIDMEMFREE)(LPVMEMHEAP, FLATPTR)
PVOID(APIENTRY * PGD_ENGALLOCPRIVATEUSERMEM)(PDD_SURFACE_LOCAL, SIZE_T, ULONG)
#define _Must_inspect_result_
#define _Ret_opt_bytecount_(size)
FLATPTR APIENTRY HeapVidMemAllocAligned(LPVIDMEM lpVidMem, DWORD dwWidth, DWORD dwHeight, LPSURFACEALIGNMENT lpAlignment, LPLONG lpNewPitch)
BOOL APIENTRY EngUnlockDirectDrawSurface(PDD_SURFACE_LOCAL pSurface)
VOID APIENTRY VidMemFree(LPVMEMHEAP pvmh, FLATPTR ptr)
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)
#define DDERR_UNSUPPORTED
DRVFN gpDxFuncs[DXG_INDEX_DxDdIoctl+1]
_In_ ULONG _In_ ULONG ulTag
_In_ DD_SURFACE_LOCAL * pSurface
_Must_inspect_result_ _In_ ULONG cjMemSize