2007-02-11 16:57:31 +00:00
|
|
|
|
2007-02-16 20:14:24 +00:00
|
|
|
|
|
|
|
/* All testcase are base how windows 2000 sp4 acting */
|
|
|
|
|
|
|
|
|
2007-02-11 16:57:31 +00:00
|
|
|
#include <stdio.h>
|
2007-02-16 16:27:46 +00:00
|
|
|
/* SDK/DDK/NDK Headers. */
|
2007-02-11 16:57:31 +00:00
|
|
|
#include <windows.h>
|
2007-02-16 16:27:46 +00:00
|
|
|
#include <wingdi.h>
|
|
|
|
#include <winddi.h>
|
|
|
|
#include <d3dnthal.h>
|
2007-02-22 19:21:10 +00:00
|
|
|
#include <dll/directx/d3d8thk.h>
|
2007-02-11 16:57:31 +00:00
|
|
|
#include "test.h"
|
2007-02-16 16:27:46 +00:00
|
|
|
|
2007-02-24 13:58:25 +00:00
|
|
|
BOOL dumping_on =FALSE;
|
|
|
|
|
2007-02-22 19:21:10 +00:00
|
|
|
/* we using d3d8thk.dll it is doing the real syscall in windows 2000
|
|
|
|
* in ReactOS and Windows XP and higher d3d8thk.dll it linking to
|
|
|
|
* gdi32.dll instead doing syscall, gdi32.dll export DdEntry1-56
|
|
|
|
* and doing the syscall direcly. I did forget about it, This
|
|
|
|
* test program are now working on any Windows and ReactOS
|
|
|
|
* that got d3d8thk.dll
|
|
|
|
*/
|
2007-02-16 16:27:46 +00:00
|
|
|
|
2007-02-11 16:57:31 +00:00
|
|
|
int main(int argc, char **argv)
|
|
|
|
{
|
2007-02-16 16:27:46 +00:00
|
|
|
HANDLE hDirectDrawLocal;
|
|
|
|
|
2007-02-24 13:58:25 +00:00
|
|
|
if (argc == 2)
|
|
|
|
{
|
|
|
|
if (stricmp(argv[1],"-dump")==0)
|
|
|
|
{
|
|
|
|
dumping_on = TRUE;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2007-02-16 16:27:46 +00:00
|
|
|
hDirectDrawLocal = test_NtGdiDdCreateDirectDrawObject();
|
2007-02-11 16:57:31 +00:00
|
|
|
|
2007-02-16 16:27:46 +00:00
|
|
|
test_NtGdiDdQueryDirectDrawObject(hDirectDrawLocal);
|
|
|
|
|
2007-05-12 10:14:22 +00:00
|
|
|
test_NtGdiDdGetScanLine(hDirectDrawLocal);
|
|
|
|
|
|
|
|
test_NtGdiDdWaitForVerticalBlank(hDirectDrawLocal);
|
|
|
|
|
|
|
|
test_NtGdiDdCanCreateSurface(hDirectDrawLocal);
|
|
|
|
|
2007-02-16 16:27:46 +00:00
|
|
|
test_NtGdiDdDeleteDirectDrawObject(hDirectDrawLocal);
|
2007-02-11 16:57:31 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2007-02-24 13:32:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-02-16 16:27:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|