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-05-12 10:14:22 +00:00
|
|
|
void test_NtGdiDdGetScanLine(HANDLE hDirectDrawLocal);
|
|
|
|
void test_NtGdiDdWaitForVerticalBlank(HANDLE hDirectDrawLocal);
|
|
|
|
void test_NtGdiDdCanCreateSurface(HANDLE hDirectDrawLocal);
|
|
|
|
|
2007-02-16 16:27:46 +00:00
|
|
|
|
2007-02-22 19:21:10 +00:00
|
|
|
void dump_halinfo(DD_HALINFO *pHalInfo, char *text);
|
2007-02-24 13:58:25 +00:00
|
|
|
void dump_CallBackFlags(DWORD *pCallBackFlags, char *text);
|
2008-04-12 13:54:48 +00:00
|
|
|
void dump_D3dCallbacks(D3DNTHAL_CALLBACKS *puD3dCallbacks, char *text);
|
2008-04-12 19:24:31 +00:00
|
|
|
void dump_D3dDriverData(D3DNTHAL_GLOBALDRIVERDATA *puD3dDriverData, char *text);
|
2008-04-13 11:47:04 +00:00
|
|
|
void dump_D3dBufferCallbacks(DD_D3DBUFCALLBACKS *puD3dCallbacks, char *text);
|
2008-04-13 14:50:23 +00:00
|
|
|
void dump_D3dTextureFormats(DDSURFACEDESC *puD3dTextureFormats, int dwNum, char *text);
|
2008-04-13 11:47:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-02-22 19:21:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2007-02-16 16:27:46 +00:00
|
|
|
#define testing_eq(input,value,counter,text) \
|
|
|
|
if (input == value) \
|
|
|
|
{ \
|
|
|
|
counter++; \
|
2007-02-16 16:48:54 +00:00
|
|
|
printf("FAIL ret=%s, %d != %d )\n",text,(int)input,(int)value); \
|
2007-02-16 16:27:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#define testing_noteq(input,value,counter,text) \
|
|
|
|
if (input != value) \
|
|
|
|
{ \
|
|
|
|
counter++; \
|
2007-02-16 16:48:54 +00:00
|
|
|
printf("FAIL ret=%s, %d == %d )\n",text,(int)input,(int)value); \
|
2007-02-16 16:27:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#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
|