mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 07:26:20 +00:00
Move tests from rosapps to rostests
svn path=/trunk/; revision=26010
This commit is contained in:
parent
3e98dbd825
commit
2199ae9003
262 changed files with 362 additions and 6 deletions
55
rostests/dxtest/win32kdxtest/main.c
Normal file
55
rostests/dxtest/win32kdxtest/main.c
Normal file
|
@ -0,0 +1,55 @@
|
|||
|
||||
|
||||
/* All testcase are base how windows 2000 sp4 acting */
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
/* SDK/DDK/NDK Headers. */
|
||||
#include <windows.h>
|
||||
#include <wingdi.h>
|
||||
#include <winddi.h>
|
||||
#include <d3dnthal.h>
|
||||
#include <dll/directx/d3d8thk.h>
|
||||
#include "test.h"
|
||||
|
||||
BOOL dumping_on =FALSE;
|
||||
|
||||
/* 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
|
||||
*/
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
HANDLE hDirectDrawLocal;
|
||||
|
||||
if (argc == 2)
|
||||
{
|
||||
if (stricmp(argv[1],"-dump")==0)
|
||||
{
|
||||
dumping_on = TRUE;
|
||||
}
|
||||
}
|
||||
|
||||
hDirectDrawLocal = test_NtGdiDdCreateDirectDrawObject();
|
||||
|
||||
test_NtGdiDdQueryDirectDrawObject(hDirectDrawLocal);
|
||||
|
||||
test_NtGdiDdDeleteDirectDrawObject(hDirectDrawLocal);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue