32 DWORD CallBackFlags[4];
51 DWORD dwTextureCounter = 0;
76 pCallBackFlags, puD3dCallbacks,
77 puD3dDriverData, puD3dBufferCallbacks,
78 puD3dTextureFormats, puNumHeaps,
79 puvmList, puNumFourCC,
93 if (hDirectDraw ==
NULL)
95 skip(
"No DirectDrawObject\n");
102 pCallBackFlags, puD3dCallbacks,
103 puD3dDriverData, puD3dBufferCallbacks,
104 puD3dTextureFormats, puNumHeaps,
105 puvmList, puNumFourCC,
122 pCallBackFlags, puD3dCallbacks,
123 puD3dDriverData, puD3dBufferCallbacks,
124 puD3dTextureFormats, puNumHeaps,
125 puvmList, puNumFourCC,
188 RTEST(
pHalInfo->vmiData.ddpfDisplay.dwRGBAlphaBitMask == 0 );
257 pCallBackFlags = CallBackFlags;
261 pCallBackFlags, puD3dCallbacks,
262 puD3dDriverData, puD3dBufferCallbacks,
263 puD3dTextureFormats, puNumHeaps,
264 puvmList, puNumFourCC,
290 RTEST(pCallBackFlags[2] == 0);
294 pCallBackFlags = CallBackFlags;
295 puD3dCallbacks = &D3dCallbacks;
301 pCallBackFlags, puD3dCallbacks,
302 puD3dDriverData, puD3dBufferCallbacks,
303 puD3dTextureFormats, puNumHeaps,
304 puvmList, puNumFourCC,
379 RTEST(pCallBackFlags[2] == 0);
387 pCallBackFlags = CallBackFlags;
388 puD3dCallbacks = &D3dCallbacks;
389 puD3dDriverData = &D3dDriverData;
396 pCallBackFlags, puD3dCallbacks,
397 puD3dDriverData, puD3dBufferCallbacks,
398 puD3dTextureFormats, puNumHeaps,
399 puvmList, puNumFourCC,
423 RTEST(pCallBackFlags[2] == 0);
445 pCallBackFlags = CallBackFlags;
446 puD3dCallbacks = &D3dCallbacks;
447 puD3dDriverData = &D3dDriverData;
448 puD3dBufferCallbacks = &D3dBufferCallbacks;
456 pCallBackFlags, puD3dCallbacks,
457 puD3dDriverData, puD3dBufferCallbacks,
458 puD3dTextureFormats, puNumHeaps,
459 puvmList, puNumFourCC,
495 RTEST(pCallBackFlags[2] == 0);
560 pCallBackFlags = CallBackFlags;
561 puD3dCallbacks = &D3dCallbacks;
562 puD3dDriverData = &D3dDriverData;
563 puD3dBufferCallbacks = &D3dBufferCallbacks;
583 pCallBackFlags, puD3dCallbacks,
584 puD3dDriverData, puD3dBufferCallbacks,
585 puD3dTextureFormats, puNumHeaps,
586 puvmList, puNumFourCC,
612 RTEST(pCallBackFlags[2] == 0);
623 myDesc = puD3dTextureFormats;
624 for (dwTextureCounter=0;dwTextureCounter<puD3dDriverData->
dwNumTextureFormats;dwTextureCounter++)
630 RTEST(myDesc->dwHeight == 0);
631 RTEST(myDesc->dwWidth == 0);
632 RTEST(myDesc->dwLinearSize == 0);
633 RTEST(myDesc->dwBackBufferCount == 0);
634 RTEST(myDesc->dwZBufferBitDepth == 0);
635 RTEST(myDesc->dwAlphaBitDepth == 0);
636 RTEST(myDesc->dwReserved == 0);
637 RTEST(myDesc->lpSurface == 0);
638 RTEST(myDesc->ddckCKDestOverlay.dwColorSpaceLowValue == 0);
639 RTEST(myDesc->ddckCKDestOverlay.dwColorSpaceHighValue == 0);
640 RTEST(myDesc->ddckCKDestBlt.dwColorSpaceLowValue == 0);
641 RTEST(myDesc->ddckCKDestBlt.dwColorSpaceHighValue == 0);
642 RTEST(myDesc->ddckCKSrcOverlay.dwColorSpaceLowValue == 0);
643 RTEST(myDesc->ddckCKSrcOverlay.dwColorSpaceHighValue == 0);
644 RTEST(myDesc->ddckCKSrcBlt.dwColorSpaceLowValue == 0);
645 RTEST(myDesc->ddckCKSrcBlt.dwColorSpaceHighValue == 0);
647 RTEST(myDesc->ddpfPixelFormat.dwFlags != 0);
650 RTEST(myDesc->ddpfPixelFormat.dwFourCC != 0);
661 pCallBackFlags = CallBackFlags;
662 puD3dCallbacks = &D3dCallbacks;
663 puD3dDriverData = &D3dDriverData;
664 puD3dBufferCallbacks = &D3dBufferCallbacks;
665 puNumHeaps = &NumHeaps;
678 pCallBackFlags, puD3dCallbacks,
679 puD3dDriverData, puD3dBufferCallbacks,
680 puD3dTextureFormats, puNumHeaps,
681 puvmList, puNumFourCC,
701 RTEST(NumHeaps == 0);
711 RTEST(pCallBackFlags[2] == 0);
723 pCallBackFlags = CallBackFlags;
724 puD3dCallbacks = &D3dCallbacks;
725 puD3dDriverData = &D3dDriverData;
726 puD3dBufferCallbacks = &D3dBufferCallbacks;
727 puNumHeaps = &NumHeaps;
741 pCallBackFlags, puD3dCallbacks,
742 puD3dDriverData, puD3dBufferCallbacks,
743 puD3dTextureFormats, puNumHeaps,
744 puvmList, puNumFourCC,
764 RTEST(NumHeaps == 0);
776 RTEST(pCallBackFlags[2] == 0);
792 "NtGdiDdDeleteDirectDrawObject() failed\n");
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
#define DDHALINFO_GETDRIVERINFOSET
#define DDHALINFO_GETDRIVERINFO2
#define DDHAL_D3DBUFCB32_LOCKD3DBUF
#define DDHAL_D3DBUFCB32_CANCREATED3DBUF
#define DDHAL_D3DBUFCB32_DESTROYD3DBUF
#define DDHAL_D3DBUFCB32_UNLOCKD3DBUF
#define DDHAL_D3DBUFCB32_CREATED3DBUF
__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 BOOL APIENTRY NtGdiDdDeleteDirectDrawObject(_In_ HANDLE hDirectDrawLocal)
__kernel_entry W32KAPI HANDLE APIENTRY NtGdiDdCreateDirectDrawObject(_In_ HDC hdc)
#define DDPF_PALETTEINDEXEDTO8
#define DDPF_PALETTEINDEXED4
#define DDPF_PALETTEINDEXED2
#define DDPF_PALETTEINDEXED1
#define DDPF_PALETTEINDEXED8
LPD3DNTHAL_SCENECAPTURECB SceneCapture
LPD3DNTHAL_TEXTURESWAPCB TextureSwap
LPD3DNTHAL_TEXTURECREATECB TextureCreate
LPD3DNTHAL_TEXTUREGETSURFCB TextureGetSurf
LPD3DNTHAL_TEXTUREDESTROYCB TextureDestroy
LPD3DNTHAL_CONTEXTDESTROYALLCB ContextDestroyAll
DWORD dwNumTextureFormats
D3DNTHALDEVICEDESC_V1 hwCaps
PDD_CANCREATESURFACE CanCreateD3DBuffer
PDD_CREATESURFACE CreateD3DBuffer
PDD_SURFCB_DESTROYSURFACE DestroyD3DBuffer
PDD_SURFCB_LOCK LockD3DBuffer
PDD_SURFCB_UNLOCK UnlockD3DBuffer
#define RtlCopyMemory(Destination, Source, Length)
#define RtlZeroMemory(Destination, Length)
BOOL WINAPI EnumDisplaySettingsA(LPCSTR lpszDeviceName, DWORD iModeNum, LPDEVMODEA lpDevMode)
_Out_ DD_HALINFO * pHalInfo
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)
#define ENUM_CURRENT_SETTINGS