2007-02-11 16:57:31 +00:00
|
|
|
|
2007-02-16 16:27:46 +00:00
|
|
|
|
|
|
|
HANDLE test_NtGdiDdCreateDirectDrawObject();
|
|
|
|
void test_NtGdiDdDeleteDirectDrawObject(HANDLE hDirectDrawLocal);
|
|
|
|
void test_NtGdiDdQueryDirectDrawObject( HANDLE hDirectDrawLocal);
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-02-11 16:57:31 +00:00
|
|
|
HANDLE sysNtGdiDdCreateDirectDrawObject(HDC hdc);
|
2007-02-16 16:27:46 +00:00
|
|
|
BOOL sysNtGdiDdDeleteDirectDrawObject( HANDLE hDirectDrawLocal);
|
|
|
|
BOOL sysNtGdiDdQueryDirectDrawObject( HANDLE hDirectDrawLocal, DD_HALINFO *pHalInfo,
|
|
|
|
DWORD *pCallBackFlags,
|
|
|
|
LPD3DNTHAL_CALLBACKS puD3dCallbacks,
|
|
|
|
LPD3DNTHAL_GLOBALDRIVERDATA puD3dDriverData,
|
|
|
|
PDD_D3DBUFCALLBACKS puD3dBufferCallbacks,
|
|
|
|
LPDDSURFACEDESC puD3dTextureFormats,
|
|
|
|
DWORD *puNumHeaps, VIDEOMEMORY *puvmList,
|
|
|
|
DWORD *puNumFourCC, DWORD *puFourCC);
|
|
|
|
|
2007-02-11 16:57:31 +00:00
|
|
|
HANDLE NtGdiDdCreateDirectDrawObject(HDC hdc);
|
2007-02-16 16:27:46 +00:00
|
|
|
BOOL NtGdiDdDeleteDirectDrawObject( HANDLE hDirectDrawLocal);
|
|
|
|
|
|
|
|
BOOL NtGdiDdQueryDirectDrawObject( HANDLE hDirectDrawLocal, DD_HALINFO *pHalInfo,
|
|
|
|
DWORD *pCallBackFlags,
|
|
|
|
LPD3DNTHAL_CALLBACKS puD3dCallbacks,
|
|
|
|
LPD3DNTHAL_GLOBALDRIVERDATA puD3dDriverData,
|
|
|
|
PDD_D3DBUFCALLBACKS puD3dBufferCallbacks,
|
|
|
|
LPDDSURFACEDESC puD3dTextureFormats,
|
|
|
|
DWORD *puNumHeaps, VIDEOMEMORY *puvmList,
|
|
|
|
DWORD *puNumFourCC, DWORD *puFourCC);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define testing_eq(input,value,counter,text) \
|
|
|
|
if (input == value) \
|
|
|
|
{ \
|
|
|
|
counter++; \
|
|
|
|
printf("FAIL ret=%s, %d != %d )\n",text,input,value); \
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#define testing_noteq(input,value,counter,text) \
|
|
|
|
if (input != value) \
|
|
|
|
{ \
|
|
|
|
counter++; \
|
|
|
|
printf("FAIL ret=%s, %d == %d )\n",text,input,value); \
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#define show_status(counter, text) \
|
|
|
|
if (counter == 0) \
|
|
|
|
{ \
|
|
|
|
printf("End testing of %s Status : ok\n\n",text); \
|
|
|
|
} \
|
|
|
|
else \
|
|
|
|
{ \
|
|
|
|
printf("End testing of %s Status : fail\n\n",text); \
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#if !defined(__REACTOS__)
|
|
|
|
|
|
|
|
#define win_syscall(inValue,outValue,syscallid) \
|
|
|
|
__asm { mov eax, syscallid }; \
|
|
|
|
__asm { lea edx, [inValue] }; \
|
|
|
|
__asm { int 0x2E }; \
|
|
|
|
__asm { mov outValue,eax};
|
|
|
|
|
|
|
|
|
2007-02-11 16:57:31 +00:00
|
|
|
|
2007-02-16 16:27:46 +00:00
|
|
|
#endif
|