29 if (pfnHeapVidMemAllocAligned ==
NULL)
31 DPRINT1(
"Warning: no pfnHeapVidMemAllocAligned\n");
35 DPRINT(
"Calling dxg.sys pfnHeapVidMemAllocAligned\n");
36 return pfnHeapVidMemAllocAligned(lpVidMem,
dwWidth,
dwHeight, lpAlignment, lpNewPitch);
49 if (pfnVidMemFree ==
NULL)
51 DPRINT1(
"Warning: no pfnVidMemFree\n");
55 DPRINT(
"Calling dxg.sys pfnVidMemFree\n");
56 pfnVidMemFree(pvmh,
ptr);
69EngAllocPrivateUserMem(
76 if (pfnEngAllocPrivateUserMem ==
NULL)
78 DPRINT1(
"Warning: no pfnEngAllocPrivateUserMem\n");
82 DPRINT(
"Calling dxg.sys pfnEngAllocPrivateUserMem\n");
96 if (pfnEngFreePrivateUserMem ==
NULL)
98 DPRINT1(
"Warning: no pfnEngFreePrivateUserMem\n");
102 DPRINT(
"Calling dxg.sys pfnEngFreePrivateUserMem\n");
103 pfnEngFreePrivateUserMem(psl, pv);
140 DPRINT(
"Calling dxg.sys pfnEngDxIoctl\n");
141 if (pfnEngDxIoctl !=
NULL)
143 retVal = pfnEngDxIoctl(ulIoctl,
pBuffer, ulBufferSize);
172 DPRINT(
"Calling dxg.sys pfnEngLockDirectDrawSurface\n");
173 if (pfnEngLockDirectDrawSurface !=
NULL)
175 retVal = pfnEngLockDirectDrawSurface(hSurface);
204 DPRINT(
"Calling dxg.sys pfnEngUnlockDirectDrawSurface\n");
205 if (pfnEngUnlockDirectDrawSurface !=
NULL)
207 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