22#define GetDdHandle(Handle) ((HANDLE)Handle ? (HANDLE)Handle : ghDirectDraw)
198 UpdateOverlay->
dwFlags &= ~DDOVER_KEYDEST;
208 UpdateOverlay->
dwFlags &= ~DDOVER_KEYSRC;
248 WaitForVerticalBlank->
lpDD->
hDD),
250 WaitForVerticalBlank);
289 HANDLE hPrevSurface, hSurface;
316 sprintf (
buffer,
"Function %s : Optimze max to %d Surface ? (%s:%d)\n",
__FUNCTION__, (
int)SurfaceCount,__FILE__,__LINE__ );
322 if (SurfaceCount != 1)
332 if ((pDdSurfaceLocal ==
NULL) || (pDdSurfaceMore ==
NULL) || (pDdSurfaceGlobal ==
NULL) || (phSurface ==
NULL) || (puhSurface ==
NULL))
336 if ( pDdSurfaceLocal !=
NULL )
341 if ( pDdSurfaceMore !=
NULL )
346 if ( pDdSurfaceGlobal !=
NULL )
351 if ( phSurface !=
NULL )
356 if ( puhSurface !=
NULL )
367 pDdSurfaceLocal = &DdSurfaceLocal;
368 pDdSurfaceMore = &DdSurfaceMore;
369 pDdSurfaceGlobal = &DdSurfaceGlobal;
370 phSurface = &hPrevSurface;
371 puhSurface = &hSurface;
383 ptmpDdSurfaceGlobal = pDdSurfaceGlobal;
384 ptmpDdSurfaceLocal = pDdSurfaceLocal;
385 ptmpDdSurfaceMore = pDdSurfaceMore;
388 for (
i = 0;
i < SurfaceCount;
i++)
393 phSurface[
i] = (
HANDLE)lcl->hDDSurface;
457 if (SurfaceCount == 0)
463 ptmpDdSurfaceMore = pDdSurfaceMore;
464 ptmpDdSurfaceGlobal = pDdSurfaceGlobal;
465 ptmpDdSurfaceLocal = pDdSurfaceLocal;
467 for (
i=0;
i<SurfaceCount;
i++)
513 if (SurfaceCount > 1)
515 if ( pDdSurfaceLocal !=
NULL )
520 if ( pDdSurfaceMore !=
NULL )
525 if ( pDdSurfaceGlobal !=
NULL )
530 if ( phSurface !=
NULL )
535 if ( puhSurface !=
NULL )
706 HANDLE phSurfaceVideo[10];
712 DWORD dwNumVBIAutoflip;
716 if ((dwNumAutoflip == 0) &&
722 if (dwNumAutoflip != 0)
724 if (dwNumAutoflip>10)
733 if ( (dwNumVBIAutoflip == 0) &&
739 if (dwNumVBIAutoflip != 0)
741 if (dwNumVBIAutoflip>10)
743 dwNumVBIAutoflip = 10;
1008 pData->ddRVal = retValue;
1044 pData->ddRVal = retValue;
1080 pData->ddRVal = retValue;
1127 pData->ddRVal = retValue;
1171 pData->ddRVal = retValue;
1187 else if (
IsEqualGUID(&
pData->guidInfo, &GUID_D3DParseUnknownCommandCallback))
1220 pData->ddRVal = retValue;
1293 pCreateSurface->
dwSCnt = 1;
1294 pSurfLcl = pCreateSurface->
lplpSList[0];
1295 pSurfGBL = pSurfLcl->
lpGbl;
1319 &puSurfaceGlobalData,
1320 &puSurfaceLocalData,
1326 if ( puhSurface !=
NULL )
1486 pDirectDrawGlobal->hDD = 0;
1494 Return = pDirectDrawGlobal->hDD ?
TRUE :
FALSE;
1525 DWORD CallbackFlags[3];
1526 DWORD dwNumHeaps=0, FourCCs=0;
1539 (
pHalInfo->vmiData.dwNumHeaps != 0) )
1551 &D3dBufferCallbacks,
1573 if ( (D3dCallbacks.
dwSize != 0) &&
1574 (D3dDriverData.
dwSize != 0) )
1581 if (D3dBufferCallbacks.
dwSize)
1605 pHalInfo->vmiData.dwNumHeaps = dwNumHeaps;
1612 pHalInfo->ddCaps.dwNumFourCCCodes = FourCCs;
1780 if ( D3dBufferCallbacks.
dwSize)
1836 if(pDirectDrawGlobal->hDD)
1842 pDirectDrawGlobal->hDD = 0;
1874 BOOL bPrimarySurface)
1892 if (pSurfaceLocal->hDDSurface)
1896 pSurfaceLocal->hDDSurface = 0;
1987 if (!pSurfaceFrom->hDDSurface)
2021 (
HANDLE)pSurfaceAttached->hDDSurface);
DWORD(PASCAL * LPD3DHAL_CONTEXTDESTROYALLCB)(LPD3DHAL_CONTEXTDESTROYALLDATA)
DWORD(PASCAL * LPD3DHAL_CONTEXTCREATECB)(LPD3DHAL_CONTEXTCREATEDATA)
struct _DDRAWI_DIRECTDRAW_GBL FAR * LPDDRAWI_DIRECTDRAW_GBL
DWORD(PASCAL * LPD3DHAL_CONTEXTDESTROYCB)(LPD3DHAL_CONTEXTDESTROYDATA)
struct _DDRAWI_DIRECTDRAW_LCL FAR * LPDDRAWI_DIRECTDRAW_LCL
struct _DDRAWI_DDRAWSURFACE_LCL FAR * LPDDRAWI_DDRAWSURFACE_LCL
#define DdCreateDirectDrawObject
#define DdQueryDirectDrawObject
#define DdCreateDIBSection
#define DdUnattachSurface
#define DdCreateSurfaceObject
#define DdDeleteDirectDrawObject
#define DdReenableDirectDrawObject
#define DdDeleteSurfaceObject
#define DdQueryDisplaySettingsUniqueness
#define DDHAL_DRIVER_HANDLED
DWORD(PASCAL * LPDDHALVPORTCB_GETFIELD)(LPDDHAL_GETVPORTFIELDDATA)
DWORD(PASCAL * LPDDHALEXEBUFCB_DESTROYEXEBUF)(LPDDHAL_DESTROYSURFACEDATA)
#define DDRAWISURF_INVALID
DWORD(PASCAL * LPDDHALVPORTCB_CREATEVIDEOPORT)(LPDDHAL_CREATEVPORTDATA)
DWORD(PASCAL * LPDDHALEXEBUFCB_UNLOCKEXEBUF)(LPDDHAL_UNLOCKDATA)
DWORD(PASCAL * LPDDHALVPORTCB_WAITFORSYNC)(LPDDHAL_WAITFORVPORTSYNCDATA)
#define DDHAL_SURFCB32_DESTROYSURFACE
DWORD(PASCAL * LPDDHALVPORTCB_GETSIGNALSTATUS)(LPDDHAL_GETVPORTSIGNALDATA)
#define DDHAL_VPORT32_UPDATE
#define DDRAWISURF_DCILOCK
#define DDRAWISURF_INMASTERSPRITELIST
DWORD(PASCAL * LPDDHALEXEBUFCB_LOCKEXEBUF)(LPDDHAL_LOCKDATA)
DWORD(PASCAL * LPDDHALVPORTCB_COLORCONTROL)(LPDDHAL_VPORTCOLORDATA)
#define DDHAL_VPORT32_WAITFORSYNC
#define DDHAL_VPORT32_DESTROY
#define DDHAL_SURFCB32_BLT
#define DDHAL_SURFCB32_GETFLIPSTATUS
#define DDRAWISURF_DRIVERMANAGED
#define DDMISCELLANEOUS2CALLBACKSSIZE
DWORD(PASCAL * LPDDHALVPORTCB_GETLINE)(LPDDHAL_GETVPORTLINEDATA)
#define DDHAL_MISCCB32_GETAVAILDRIVERMEMORY
#define DDMISCELLANEOUSCALLBACKSSIZE
#define DDHAL_SURFCB32_LOCK
struct _DDHAL_GETDRIVERINFODATA DDHAL_GETDRIVERINFODATA
#define DDHAL_CB32_GETSCANLINE
DWORD(PASCAL * LPDDHALVPORTCB_CANCREATEVIDEOPORT)(LPDDHAL_CANCREATEVPORTDATA)
DWORD(PASCAL * LPDDHAL_GETAVAILDRIVERMEMORY)(LPDDHAL_GETAVAILDRIVERMEMORYDATA)
#define DDHAL_SURFCB32_GETBLTSTATUS
struct _DDHAL_DDEXEBUFCALLBACKS DDHAL_DDEXEBUFCALLBACKS
#define DDHAL_SURFCB32_UNLOCK
#define DDHAL_SURFCB32_SETOVERLAYPOSITION
DWORD(PASCAL * LPDDHALVPORTCB_GETFLIPSTATUS)(LPDDHAL_GETVPORTFLIPSTATUSDATA)
#define DDHAL_VPORT32_FLIP
#define DDHAL_CB32_CANCREATESURFACE
#define DDRAWISURF_DCIBUSY
#define DDHAL_VPORT32_CREATEVIDEOPORT
DWORD(PASCAL * LPDDHALVPORTCB_GETOUTPUTFORMATS)(LPDDHAL_GETVPORTOUTPUTFORMATDATA)
#define DDRAWISURF_BACKBUFFER
DWORD(PASCAL * LPDDHALEXEBUFCB_CREATEEXEBUF)(LPDDHAL_CREATESURFACEDATA)
DWORD(PASCAL * LPDDHALCOLORCB_COLORCONTROL)(LPDDHAL_COLORCONTROLDATA)
DWORD(PASCAL * LPDDHAL_GETDRIVERSTATE)(LPDDHAL_GETDRIVERSTATEDATA)
#define DDHALINFO_GETDRIVERINFOSET
DWORD(PASCAL * LPDDHALVPORTCB_GETINPUTFORMATS)(LPDDHAL_GETVPORTINPUTFORMATDATA)
struct _DDHAL_DDSURFACECALLBACKS DDHAL_DDSURFACECALLBACKS
#define DDCOLORCONTROLCALLBACKSSIZE
#define DDHAL_SURFCB32_ADDATTACHEDSURFACE
struct _DDHAL_DDCALLBACKS DDHAL_DDCALLBACKS
#define DDHAL_SURFCB32_SETCOLORKEY
#define DDHAL_SURFCB32_UPDATEOVERLAY
DWORD(PASCAL * LPDDHALVPORTCB_UPDATE)(LPDDHAL_UPDATEVPORTDATA)
#define DDHAL_CB32_WAITFORVERTICALBLANK
#define DDHAL_SURFCB32_FLIP
struct _DDHAL_DDPALETTECALLBACKS DDHAL_DDPALETTECALLBACKS
DWORD(PASCAL * LPDDHALVPORTCB_FLIP)(LPDDHAL_FLIPVPORTDATA)
#define DDRAWISURF_HASPIXELFORMAT
#define DDRAWISURF_FRONTBUFFER
struct _DDHALINFO DDHALINFO
#define DDHAL_CB32_CREATESURFACE
DWORD(PASCAL * LPDDHALVPORTCB_GETVPORTCONNECT)(LPDDHAL_GETVPORTCONNECTDATA)
DWORD(PASCAL * LPDDHAL_GETDRIVERINFO)(LPDDHAL_GETDRIVERINFODATA)
#define DDVIDEOPORTCALLBACKSSIZE
DWORD(PASCAL * LPDDHALEXEBUFCB_CANCREATEEXEBUF)(LPDDHAL_CANCREATESURFACEDATA)
DWORD(PASCAL * LPDDHALVPORTCB_DESTROYVPORT)(LPDDHAL_DESTROYVPORTDATA)
DWORD(PASCAL * LPDDHAL_CREATESURFACEEX)(LPDDHAL_CREATESURFACEEXDATA)
#define DDHAL_DRIVER_NOTHANDLED
DWORD(PASCAL * LPDDHALVPORTCB_GETBANDWIDTH)(LPDDHAL_GETVPORTBANDWIDTHDATA)
DWORD(WINAPI * PDD_SETEXCLUSIVEMODE)(PDD_SETEXCLUSIVEMODEDATA)
struct _VIDEOMEMORY * PVIDEOMEMORY
struct _DD_NTCALLBACKS * PDD_NTCALLBACKS
struct _DD_SURFACE_GLOBAL DD_SURFACE_GLOBAL
struct _VIDEOMEMORY VIDEOMEMORY
struct _DD_SURFACE_GLOBAL * PDD_SURFACE_GLOBAL
DWORD(WINAPI * PDD_FLIPTOGDISURFACE)(PDD_FLIPTOGDISURFACEDATA)
struct _DD_SURFACE_LOCAL DD_SURFACE_LOCAL
struct _DD_NTCALLBACKS DD_NTCALLBACKS
struct _DD_SURFACE_MORE DD_SURFACE_MORE
struct _DD_SURFACE_LOCAL * PDD_SURFACE_LOCAL
struct _DD_SURFACE_MORE * PDD_SURFACE_MORE
#define ERROR_CALL_NOT_IMPLEMENTED
#define HeapFree(x, y, z)
static void cleanup(void)
PGDI_SHARED_HANDLE_TABLE GdiSharedHandleTable
DWORD WINAPI DdGetBltStatus(LPDDHAL_GETBLTSTATUSDATA GetBltStatus)
DWORD WINAPI DvpGetVideoPortBandwidth(LPDDHAL_GETVPORTBANDWIDTHDATA pDvdPortBandWidth)
BOOL WINAPI D3dContextCreate(LPD3DHAL_CONTEXTCREATEDATA pdcci)
DWORD WINAPI DdGetDriverInfo(LPDDHAL_GETDRIVERINFODATA pData)
DWORD WINAPI DdAddAttachedSurface(LPDDHAL_ADDATTACHEDSURFACEDATA Attach)
DWORD WINAPI DvpUpdateVideoPort(LPDDHAL_UPDATEVPORTDATA pDvdUpdateVideoPort)
DWORD WINAPI DdUnlockD3D(LPDDHAL_UNLOCKDATA Unlock)
DWORD WINAPI DdSetExclusiveMode(LPDDHAL_SETEXCLUSIVEMODEDATA pDdSetExclusiveMode)
DWORD WINAPI DdUnlock(LPDDHAL_UNLOCKDATA Unlock)
BOOL WINAPI DvpCreateVideoPort(LPDDHAL_CREATEVPORTDATA pDvdCreatePort)
DWORD WINAPI DvpGetVideoPortField(LPDDHAL_FLIPVPORTDATA pDvdGetVideoPortField)
DWORD WINAPI DvpFlipVideoPort(LPDDHAL_FLIPVPORTDATA pDvdPortFlip)
DWORD WINAPI DdColorControl(LPDDHAL_COLORCONTROLDATA pDdColorControl)
DWORD WINAPI DdGetAvailDriverMemory(LPDDHAL_GETAVAILDRIVERMEMORYDATA pDdGetAvailDriverMemory)
DWORD WINAPI DdUpdateOverlay(LPDDHAL_UPDATEOVERLAYDATA UpdateOverlay)
DWORD WINAPI DdGetFlipStatus(LPDDHAL_GETFLIPSTATUSDATA GetFlipStatus)
DWORD WINAPI DdBlt(LPDDHAL_BLTDATA Blt)
#define GetDdHandle(Handle)
DWORD WINAPI DdDestroyD3DBuffer(LPDDHAL_DESTROYSURFACEDATA pDestroySurface)
DWORD WINAPI DdLock(LPDDHAL_LOCKDATA Lock)
DWORD WINAPI DvpGetVideoPortConnectInfo(LPDDHAL_GETVPORTCONNECTDATA pDvdGetVideoPortInfo)
DWORD WINAPI DdCanCreateD3DBuffer(LPDDHAL_CANCREATESURFACEDATA CanCreateD3DBuffer)
BOOL WINAPI bDDCreateSurface(LPDDRAWI_DDRAWSURFACE_LCL pSurface, BOOL bComplete)
DWORD WINAPI DdFlipToGDISurface(LPDDHAL_FLIPTOGDISURFACEDATA pDdFlipToGDISurface)
DWORD WINAPI DdFlip(LPDDHAL_FLIPDATA Flip)
DWORD WINAPI DvpColorControl(LPDDHAL_VPORTCOLORDATA pDvdPortColorControl)
DWORD WINAPI DdDestroySurface(LPDDHAL_DESTROYSURFACEDATA pDestroySurface)
DWORD WINAPI DvpCanCreateVideoPort(LPDDHAL_CANCREATEVPORTDATA pDvdCanCreateVideoPort)
DWORD WINAPI DvpGetVideoPortLine(LPDDHAL_GETVPORTLINEDATA pDvdGetVideoPortLine)
DWORD WINAPI DvpGetVideoPortFlipStatus(LPDDHAL_GETVPORTFLIPSTATUSDATA pDvdPortVideoPortFlipStatus)
DWORD WINAPI DdCreateSurface(LPDDHAL_CREATESURFACEDATA pCreateSurface)
DWORD WINAPI DvpGetVideoPortInputFormats(LPDDHAL_GETVPORTINPUTFORMATDATA pDvdGetVideoPortInputFormat)
DWORD WINAPI DdSetOverlayPosition(LPDDHAL_SETOVERLAYPOSITIONDATA SetOverlayPosition)
DWORD WINAPI DdCreateSurfaceEx(LPDDHAL_CREATESURFACEEXDATA pDdCreateSurfaceEx)
DWORD WINAPI DdGetScanLine(LPDDHAL_GETSCANLINEDATA pGetScanLine)
DWORD WINAPI DvpWaitForVideoPortSync(LPDDHAL_WAITFORVPORTSYNCDATA pDvdWaitForVideoPortSync)
DWORD WINAPI DdLockD3D(LPDDHAL_LOCKDATA Lock)
DWORD WINAPI DdSetColorKey(LPDDHAL_SETCOLORKEYDATA pSetColorKey)
DWORD WINAPI DdCreateD3DBuffer(LPDDHAL_CREATESURFACEDATA pCreateSurface)
DWORD WINAPI DdWaitForVerticalBlank(LPDDHAL_WAITFORVERTICALBLANKDATA WaitForVerticalBlank)
DWORD WINAPI DvpGetVideoPortOutputFormats(LPDDHAL_GETVPORTLINEDATA pDvdGetVideoPortOutputFormat)
DWORD WINAPI DdCanCreateSurface(LPDDHAL_CANCREATESURFACEDATA CanCreateSurface)
DWORD WINAPI DvpDestroyVideoPort(LPDDHAL_DESTROYVPORTDATA pDvdDestoryPort)
DWORD WINAPI DdAlphaBlt(LPDDHAL_BLTDATA pDdAlphaBlt)
DWORD WINAPI DvpGetVideoSignalStatus(LPDDHAL_GETVPORTSIGNALDATA pDvdPortVideoSignalStatus)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
void WINAPI SHIM_OBJ_NAME() OutputDebugStringA(LPCSTR lpOutputString)
#define memcpy(s1, s2, n)
LPDDHALINFO LPDDHAL_DDCALLBACKS LPDDHAL_DDSURFACECALLBACKS LPDDHAL_DDPALETTECALLBACKS LPD3DHAL_CALLBACKS LPD3DHAL_GLOBALDRIVERDATA LPDDHAL_DDEXEBUFCALLBACKS pD3dBufferCallbacks
LPDDRAWI_DDRAWSURFACE_LCL pSurfaceTo
LPDDHALINFO LPDDHAL_DDCALLBACKS LPDDHAL_DDSURFACECALLBACKS LPDDHAL_DDPALETTECALLBACKS pDDPaletteCallbacks
LPDDHALINFO LPDDHAL_DDCALLBACKS LPDDHAL_DDSURFACECALLBACKS pDDSurfaceCallbacks
LPDDHALINFO LPDDHAL_DDCALLBACKS LPDDHAL_DDSURFACECALLBACKS LPDDHAL_DDPALETTECALLBACKS LPD3DHAL_CALLBACKS pD3dCallbacks
LPDDHALINFO LPDDHAL_DDCALLBACKS LPDDHAL_DDSURFACECALLBACKS LPDDHAL_DDPALETTECALLBACKS LPD3DHAL_CALLBACKS LPD3DHAL_GLOBALDRIVERDATA LPDDHAL_DDEXEBUFCALLBACKS LPDDSURFACEDESC pD3dTextureFormats
LPDDHALINFO LPDDHAL_DDCALLBACKS pDDCallbacks
LPDDHALINFO LPDDHAL_DDCALLBACKS LPDDHAL_DDSURFACECALLBACKS LPDDHAL_DDPALETTECALLBACKS LPD3DHAL_CALLBACKS LPD3DHAL_GLOBALDRIVERDATA pD3dDriverData
__kernel_entry W32KAPI BOOL APIENTRY NtGdiDdQueryDirectDrawObject(_In_ HANDLE hDirectDrawLocal, _Out_ PDD_HALINFO pHalInfo, _Out_writes_(3) DWORD *pCallBackFlags, _Out_opt_ LPD3DNTHAL_CALLBACKS puD3dCallbacks, _Out_opt_ LPD3DNTHAL_GLOBALDRIVERDATA puD3dDriverData, _Out_opt_ PDD_D3DBUFCALLBACKS puD3dBufferCallbacks, _Out_opt_ LPDDSURFACEDESC puD3dTextureFormats, _Out_ DWORD *puNumHeaps, _Out_opt_ VIDEOMEMORY *puvmList, _Out_ DWORD *puNumFourCC, _Out_opt_ DWORD *puFourCC)
__kernel_entry W32KAPI HDC APIENTRY NtGdiDdGetDC(_In_ HANDLE hSurface, _In_ PALETTEENTRY *puColorTable)
__kernel_entry W32KAPI DWORD APIENTRY NtGdiDdWaitForVerticalBlank(_In_ HANDLE hDirectDraw, _Inout_ PDD_WAITFORVERTICALBLANKDATA puWaitForVerticalBlankData)
__kernel_entry W32KAPI DWORD APIENTRY NtGdiDvpCanCreateVideoPort(_In_ HANDLE hDirectDraw, _Inout_ PDD_CANCREATEVPORTDATA puCanCreateVPortData)
__kernel_entry W32KAPI DWORD APIENTRY NtGdiDdFlipToGDISurface(_In_ HANDLE hDirectDraw, _Inout_ PDD_FLIPTOGDISURFACEDATA puFlipToGDISurfaceData)
_In_ DWORD _In_ DWORD dwOffset
__kernel_entry W32KAPI DWORD APIENTRY NtGdiDdSetExclusiveMode(_In_ HANDLE hDirectDraw, _Inout_ PDD_SETEXCLUSIVEMODEDATA puSetExclusiveModeData)
__kernel_entry W32KAPI DWORD APIENTRY NtGdiDdSetOverlayPosition(_In_ HANDLE hSurfaceSource, _In_ HANDLE hSurfaceDestination, _Inout_ PDD_SETOVERLAYPOSITIONDATA puSetOverlayPositionData)
__kernel_entry W32KAPI DWORD APIENTRY NtGdiDvpGetVideoPortInputFormats(_In_ HANDLE hVideoPort, _Inout_ PDD_GETVPORTINPUTFORMATDATA puGetVPortInputFormatData)
__kernel_entry W32KAPI BOOL APIENTRY NtGdiDdDeleteDirectDrawObject(_In_ HANDLE hDirectDrawLocal)
__kernel_entry W32KAPI DWORD APIENTRY NtGdiD3dContextDestroy(_In_ LPD3DNTHAL_CONTEXTDESTROYDATA pdcdd)
__kernel_entry W32KAPI DWORD APIENTRY NtGdiDdCreateSurfaceEx(_In_ HANDLE hDirectDraw, _In_ HANDLE hSurface, _In_ DWORD dwSurfaceHandle)
__kernel_entry W32KAPI DWORD APIENTRY NtGdiDdUnlock(_In_ HANDLE hSurface, _Inout_ PDD_UNLOCKDATA puUnlockData)
__kernel_entry W32KAPI DWORD APIENTRY NtGdiDvpFlipVideoPort(_In_ HANDLE hVideoPort, _In_ HANDLE hDDSurfaceCurrent, _In_ HANDLE hDDSurfaceTarget, _Inout_ PDD_FLIPVPORTDATA puFlipVPortData)
__kernel_entry W32KAPI DWORD APIENTRY NtGdiDvpGetVideoSignalStatus(_In_ HANDLE hVideoPort, _Inout_ PDD_GETVPORTSIGNALDATA puGetVPortSignalData)
__kernel_entry W32KAPI DWORD APIENTRY NtGdiDdFlip(_In_ HANDLE hSurfaceCurrent, _In_ HANDLE hSurfaceTarget, _In_ HANDLE hSurfaceCurrentLeft, _In_ HANDLE hSurfaceTargetLeft, _Inout_ PDD_FLIPDATA puFlipData)
__kernel_entry W32KAPI DWORD APIENTRY NtGdiDdSetColorKey(_In_ HANDLE hSurface, _Inout_ PDD_SETCOLORKEYDATA puSetColorKeyData)
__kernel_entry W32KAPI HANDLE APIENTRY NtGdiDdCreateDirectDrawObject(_In_ HDC hdc)
__kernel_entry W32KAPI DWORD APIENTRY NtGdiDdCreateD3DBuffer(_In_ HANDLE hDirectDraw, _Inout_ HANDLE *hSurface, _Inout_ DDSURFACEDESC *puSurfaceDescription, _Inout_ DD_SURFACE_GLOBAL *puSurfaceGlobalData, _Inout_ DD_SURFACE_LOCAL *puSurfaceLocalData, _Inout_ DD_SURFACE_MORE *puSurfaceMoreData, _Inout_ DD_CREATESURFACEDATA *puCreateSurfaceData, _Inout_ HANDLE *puhSurface)
__kernel_entry W32KAPI BOOL APIENTRY NtGdiDdSetGammaRamp(_In_ HANDLE hDirectDraw, _In_ HDC hdc, _In_reads_bytes_(sizeof(GAMMARAMP)) LPVOID lpGammaRamp)
__kernel_entry W32KAPI DWORD APIENTRY NtGdiDvpWaitForVideoPortSync(_In_ HANDLE hVideoPort, _Inout_ PDD_WAITFORVPORTSYNCDATA puWaitForVPortSyncData)
__kernel_entry W32KAPI DWORD APIENTRY NtGdiDdUpdateOverlay(_In_ HANDLE hSurfaceDestination, _In_ HANDLE hSurfaceSource, _Inout_ PDD_UPDATEOVERLAYDATA puUpdateOverlayData)
__kernel_entry W32KAPI DWORD APIENTRY NtGdiDdCreateSurface(_In_ HANDLE hDirectDraw, _In_ HANDLE *hSurface, _Inout_ DDSURFACEDESC *puSurfaceDescription, _Inout_ DD_SURFACE_GLOBAL *puSurfaceGlobalData, _Inout_ DD_SURFACE_LOCAL *puSurfaceLocalData, _Inout_ DD_SURFACE_MORE *puSurfaceMoreData, _Inout_ DD_CREATESURFACEDATA *puCreateSurfaceData, _Out_ HANDLE *puhSurface)
__kernel_entry W32KAPI BOOL APIENTRY NtGdiDdDeleteSurfaceObject(_In_ HANDLE hSurface)
__kernel_entry W32KAPI DWORD APIENTRY NtGdiDdGetFlipStatus(_In_ HANDLE hSurface, _Inout_ PDD_GETFLIPSTATUSDATA puGetFlipStatusData)
__kernel_entry W32KAPI BOOL APIENTRY NtGdiDdReenableDirectDrawObject(_In_ HANDLE hDirectDrawLocal, _Inout_ BOOL *pubNewMode)
__kernel_entry W32KAPI DWORD APIENTRY NtGdiDdGetScanLine(_In_ HANDLE hDirectDraw, _Inout_ PDD_GETSCANLINEDATA puGetScanLineData)
__kernel_entry W32KAPI HANDLE APIENTRY NtGdiDvpCreateVideoPort(_In_ HANDLE hDirectDraw, _Inout_ PDD_CREATEVPORTDATA puCreateVPortData)
__kernel_entry W32KAPI DWORD APIENTRY NtGdiDvpUpdateVideoPort(_In_ HANDLE hVideoPort, _In_ HANDLE *phSurfaceVideo, _In_ HANDLE *phSurfaceVbi, _Inout_ PDD_UPDATEVPORTDATA puUpdateVPortData)
__kernel_entry W32KAPI DWORD APIENTRY NtGdiDvpGetVideoPortFlipStatus(_In_ HANDLE hDirectDraw, _Inout_ PDD_GETVPORTFLIPSTATUSDATA puGetVPortFlipStatusData)
__kernel_entry W32KAPI DWORD APIENTRY NtGdiDdLock(_In_ HANDLE hSurface, _Inout_ PDD_LOCKDATA puLockData, _In_ HDC hdcClip)
__kernel_entry W32KAPI NTSTATUS APIENTRY NtGdiDdUnattachSurface(_In_ HANDLE hSurface, _In_ HANDLE hSurfaceAttached)
_In_ HBITMAP _In_ UINT _In_ UINT _Inout_ LPBITMAPINFO pbmi
__kernel_entry W32KAPI DWORD APIENTRY NtGdiDvpColorControl(_In_ HANDLE hVideoPort, _Inout_ PDD_VPORTCOLORDATA puVPortColorData)
__kernel_entry W32KAPI DWORD APIENTRY NtGdiDvpGetVideoPortLine(_In_ HANDLE hVideoPort, _Inout_ PDD_GETVPORTLINEDATA puGetVPortLineData)
__kernel_entry W32KAPI DWORD APIENTRY NtGdiDdColorControl(_In_ HANDLE hSurface, _Inout_ PDD_COLORCONTROLDATA puColorControlData)
__kernel_entry W32KAPI DWORD APIENTRY NtGdiDdCanCreateD3DBuffer(_In_ HANDLE hDirectDraw, _Inout_ PDD_CANCREATESURFACEDATA puCanCreateSurfaceData)
__kernel_entry W32KAPI HANDLE APIENTRY NtGdiDdGetDxHandle(_In_opt_ HANDLE hDirectDraw, _In_opt_ HANDLE hSurface, _In_ BOOL bRelease)
__kernel_entry W32KAPI DWORD APIENTRY NtGdiDdCanCreateSurface(_In_ HANDLE hDirectDraw, _Inout_ PDD_CANCREATESURFACEDATA puCanCreateSurfaceData)
__kernel_entry W32KAPI DWORD APIENTRY NtGdiDdGetBltStatus(_In_ HANDLE hSurface, _Inout_ PDD_GETBLTSTATUSDATA puGetBltStatusData)
__kernel_entry W32KAPI DWORD APIENTRY NtGdiDvpGetVideoPortField(_In_ HANDLE hVideoPort, _Inout_ PDD_GETVPORTFIELDDATA puGetVPortFieldData)
__kernel_entry W32KAPI DWORD APIENTRY NtGdiDdAddAttachedSurface(_In_ HANDLE hSurface, _In_ HANDLE hSurfaceAttached, _Inout_ PDD_ADDATTACHEDSURFACEDATA puAddAttachedSurfaceData)
__kernel_entry W32KAPI DWORD APIENTRY NtGdiDdDestroySurface(_In_ HANDLE hSurface, _In_ BOOL bRealDestroy)
__kernel_entry W32KAPI DWORD APIENTRY NtGdiDdAlphaBlt(_In_ HANDLE hSurfaceDest, _In_opt_ HANDLE hSurfaceSrc, _Inout_ PDD_BLTDATA puBltData)
__kernel_entry W32KAPI BOOL APIENTRY NtGdiD3dContextCreate(_In_ HANDLE hDirectDrawLocal, _In_ HANDLE hSurfColor, _In_ HANDLE hSurfZ, _Inout_ D3DNTHAL_CONTEXTCREATEI *pdcci)
_In_ HBITMAP _In_ UINT _In_ UINT _Inout_ LPBITMAPINFO _In_ UINT iUsage
__kernel_entry W32KAPI BOOL APIENTRY NtGdiDdResetVisrgn(_In_ HANDLE hSurface, _In_ HWND hwnd)
__kernel_entry W32KAPI DWORD APIENTRY NtGdiDvpGetVideoPortBandwidth(_In_ HANDLE hVideoPort, _Inout_ PDD_GETVPORTBANDWIDTHDATA puGetVPortBandwidthData)
__kernel_entry W32KAPI DWORD APIENTRY NtGdiDdDestroyD3DBuffer(_In_ HANDLE hSurface)
__kernel_entry W32KAPI DWORD APIENTRY NtGdiDdGetDriverState(_Inout_ PDD_GETDRIVERSTATEDATA pdata)
__kernel_entry W32KAPI DWORD APIENTRY NtGdiDvpDestroyVideoPort(_In_ HANDLE hVideoPort, _Inout_ PDD_DESTROYVPORTDATA puDestroyVPortData)
__kernel_entry W32KAPI DWORD APIENTRY NtGdiDvpGetVideoPortConnectInfo(_In_ HANDLE hDirectDraw, _Inout_ PDD_GETVPORTCONNECTDATA puGetVPortConnectData)
__kernel_entry W32KAPI DWORD APIENTRY NtGdiD3dContextDestroyAll(_Out_ LPD3DNTHAL_CONTEXTDESTROYALLDATA pdcdad)
__kernel_entry W32KAPI BOOL APIENTRY NtGdiDdAttachSurface(_In_ HANDLE hSurfaceFrom, _In_ HANDLE hSurfaceTo)
__kernel_entry W32KAPI HANDLE APIENTRY NtGdiDdCreateSurfaceObject(_In_ HANDLE hDirectDrawLocal, _In_ HANDLE hSurface, _In_ PDD_SURFACE_LOCAL puSurfaceLocal, _In_ PDD_SURFACE_MORE puSurfaceMore, _In_ PDD_SURFACE_GLOBAL puSurfaceGlobal, _In_ BOOL bComplete)
__kernel_entry W32KAPI BOOL APIENTRY NtGdiDdReleaseDC(_In_ HANDLE hSurface)
__kernel_entry W32KAPI DWORD APIENTRY NtGdiDdLockD3D(_In_ HANDLE hSurface, _Inout_ PDD_LOCKDATA puLockData)
__kernel_entry W32KAPI DWORD APIENTRY NtGdiDdBlt(_In_ HANDLE hSurfaceDest, _In_ HANDLE hSurfaceSrc, _Inout_ PDD_BLTDATA puBltData)
__kernel_entry W32KAPI DWORD APIENTRY NtGdiDdGetAvailDriverMemory(_In_ HANDLE hDirectDraw, _Inout_ PDD_GETAVAILDRIVERMEMORYDATA puGetAvailDriverMemoryData)
__kernel_entry W32KAPI DWORD APIENTRY NtGdiDdGetDriverInfo(_In_ HANDLE hDirectDraw, _Inout_ PDD_GETDRIVERINFODATA puGetDriverInfoData)
#define IsEqualGUID(rguid1, rguid2)
#define DDOVER_KEYDESTOVERRIDE
struct _DDPIXELFORMAT DDPIXELFORMAT
#define DDERR_OUTOFMEMORY
#define DDOVER_KEYSRCOVERRIDE
LPDDRAWI_DDRAWSURFACE_LCL lpDDSZLcl
LPDDRAWI_DDRAWSURFACE_LCL lpDDSLcl
LPDDRAWI_DIRECTDRAW_LCL lpDDLcl
LPD3DNTHAL_CONTEXTDESTROYCB ContextDestroy
LPD3DNTHAL_CONTEXTCREATECB ContextCreate
LPD3DNTHAL_CONTEXTDESTROYALLCB ContextDestroyAll
LPDDHAL_DDEXEBUFCALLBACKS lpDDExeBufCallbacks
ULONG_PTR lpD3DGlobalDriverData
LPDDHAL_DDPALETTECALLBACKS lpDDPaletteCallbacks
LPDDHAL_DDSURFACECALLBACKS lpDDSurfaceCallbacks
ULONG_PTR lpD3DHALCallbacks
LPDDRAWI_DDRAWSURFACE_LCL lpDDSurface
LPDDRAWI_DDRAWSURFACE_LCL lpSurfAttached
LPDDRAWI_DDRAWSURFACE_LCL lpDDSrcSurface
LPDDRAWI_DDRAWSURFACE_LCL lpDDDestSurface
LPDDRAWI_DIRECTDRAW_GBL lpDD
LPDDRAWI_DIRECTDRAW_LCL lpDD
LPDDRAWI_DDRAWSURFACE_LCL lpDDSurface
LPDDSURFACEDESC lpDDSurfaceDesc
LPDDRAWI_DIRECTDRAW_GBL lpDD
LPDDRAWI_DDRAWSURFACE_LCL * lplpSList
LPDDRAWI_DIRECTDRAW_LCL lpDDLcl
LPDDRAWI_DDRAWSURFACE_LCL lpDDSLcl
LPDDRAWI_DIRECTDRAW_LCL lpDD
LPDDRAWI_DDVIDEOPORT_LCL lpVideoPort
LPDDHALCOLORCB_COLORCONTROL ColorControl
LPDDHAL_CREATESURFACEEX CreateSurfaceEx
LPDDHAL_GETDRIVERSTATE GetDriverState
LPDDHAL_GETAVAILDRIVERMEMORY GetAvailDriverMemory
LPDDHALVPORTCB_GETFIELD GetVideoPortField
LPDDHALVPORTCB_WAITFORSYNC WaitForVideoPortSync
LPDDHALVPORTCB_GETVPORTCONNECT GetVideoPortConnectInfo
LPDDHALVPORTCB_GETINPUTFORMATS GetVideoPortInputFormats
LPDDHALVPORTCB_GETOUTPUTFORMATS GetVideoPortOutputFormats
LPDDHALVPORTCB_CREATEVIDEOPORT CreateVideoPort
LPDDHALVPORTCB_GETFLIPSTATUS GetVideoPortFlipStatus
LPDDHALVPORTCB_GETSIGNALSTATUS GetVideoSignalStatus
LPDDHALVPORTCB_DESTROYVPORT DestroyVideoPort
LPDDHALVPORTCB_GETLINE GetVideoPortLine
LPDDHALVPORTCB_GETBANDWIDTH GetVideoPortBandwidth
LPDDHALVPORTCB_FLIP FlipVideoPort
LPDDHALVPORTCB_COLORCONTROL ColorControl
LPDDHALVPORTCB_UPDATE UpdateVideoPort
LPDDHALVPORTCB_CANCREATEVIDEOPORT CanCreateVideoPort
LPDDRAWI_DDRAWSURFACE_LCL lpDDSurface
LPDDRAWI_DDVIDEOPORT_LCL lpVideoPort
LPDDRAWI_DDRAWSURFACE_LCL lpSurfTargLeft
LPDDRAWI_DDRAWSURFACE_LCL lpSurfCurr
LPDDRAWI_DDRAWSURFACE_LCL lpSurfTarg
LPDDRAWI_DDRAWSURFACE_LCL lpSurfCurrLeft
LPDDRAWI_DIRECTDRAW_GBL lpDD
LPDDRAWI_DDRAWSURFACE_LCL lpSurfCurr
LPDDRAWI_DDRAWSURFACE_LCL lpSurfTarg
LPDDRAWI_DDVIDEOPORT_LCL lpVideoPort
LPDDRAWI_DIRECTDRAW_GBL lpDD
LPDDRAWI_DDRAWSURFACE_LCL lpDDSurface
LPDDRAWI_DDRAWSURFACE_LCL lpDDSurface
LPDDRAWI_DIRECTDRAW_GBL lpDD
LPDDRAWI_DDVIDEOPORT_LCL lpVideoPort
LPDDRAWI_DIRECTDRAW_LCL lpDD
LPDDRAWI_DIRECTDRAW_LCL lpDD
LPDDRAWI_DDVIDEOPORT_LCL lpVideoPort
LPDDRAWI_DDVIDEOPORT_LCL lpVideoPort
LPDDRAWI_DDRAWSURFACE_LCL lpDDSurface
LPDDRAWI_DIRECTDRAW_GBL lpDD
LPDDRAWI_DDRAWSURFACE_LCL lpDDSrcSurface
LPDDRAWI_DDRAWSURFACE_LCL lpDDDestSurface
LPDDRAWI_DDRAWSURFACE_LCL lpDDDestSurface
LPDDRAWI_DDRAWSURFACE_LCL lpDDSrcSurface
LPDDRAWI_DDVIDEOPORT_LCL lpVideoPort
LPDDRAWI_DDRAWSURFACE_INT * lplpDDSurface
LPDDRAWI_DDRAWSURFACE_INT * lplpDDVBISurface
LPDDRAWI_DDVIDEOPORT_LCL lpVideoPort
LPDDRAWI_DIRECTDRAW_GBL lpDD
LPDDRAWI_DDVIDEOPORT_LCL lpVideoPort
DWORD dwRops[DD_ROP_SPACE]
DDCOLORKEY dckDestColorkey
DDCOLORKEY dckSrcColorkey
DDPIXELFORMAT ddpfSurface
LPDDRAWI_DIRECTDRAW_GBL lpDD
DDCOLORKEY ddckCKSrcOverlay
LPDDRAWI_DDRAWSURFACE_GBL lpGbl
LPDDRAWI_DDRAWSURFACE_MORE lpSurfMore
DDCOLORKEY ddckCKDestOverlay
LPDDRAWI_DIRECTDRAW_GBL lpGbl
PDD_CANCREATESURFACE CanCreateD3DBuffer
PDD_CREATESURFACE CreateD3DBuffer
PDD_SURFCB_DESTROYSURFACE DestroyD3DBuffer
PDD_SURFCB_LOCK LockD3DBuffer
PDD_SURFCB_UNLOCK UnlockD3DBuffer
PDD_FREEDRIVERMEMORY FreeDriverMemory
PDD_SETEXCLUSIVEMODE SetExclusiveMode
PDD_FLIPTOGDISURFACE FlipToGDISurface
DDPIXELFORMAT ddpfSurface
DDPIXELFORMAT ddpfDisplay
DDPIXELFORMAT ddpfDisplay
TW_UINT32 TW_UINT16 TW_UINT16 TW_MEMREF pData
#define RtlCopyMemory(Destination, Source, Length)
#define RtlZeroMemory(Destination, Length)
#define RtlMoveMemory(Destination, Source, Length)
_Must_inspect_result_ _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFWAITLOCK * Lock
_In_ DD_SURFACE_LOCAL * pSurface
_Out_ DD_HALINFO _Out_ DWORD _Out_ VIDEOMEMORY _Out_ DWORD _Out_ DWORD * pdwFourCC
_Out_ DD_HALINFO * pHalInfo
_Out_ DD_HALINFO _Out_ DWORD _Out_ VIDEOMEMORY * pvmList
BOOL WINAPI DeleteDC(_In_ HDC)
HDC WINAPI CreateDCW(_In_opt_ LPCWSTR pszDriver, _In_opt_ LPCWSTR pszDevice, _In_opt_ LPCWSTR psz, _In_opt_ const DEVMODEW *pdmInit)
_Must_inspect_result_ _In_ ULONG Flags