reactos/rostests/dxtest/win32kdxtest/NtGdiDdCreateDirectDrawObject.c
Aleksey Bragin 2199ae9003 Move tests from rosapps to rostests
svn path=/trunk/; revision=26010
2007-03-06 11:10:43 +00:00

34 lines
805 B
C

#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"
/*
* Test see if we getting a DirectDrawObject from win32k
*
*/
HANDLE
test_NtGdiDdCreateDirectDrawObject()
{
HANDLE retValue=0;
int fails=0;
HDC hdc=CreateDCW(L"Display",NULL,NULL,NULL);
printf("Start testing of NtGdiDdCreateDirectDrawObject\n");
retValue = OsThunkDdCreateDirectDrawObject(NULL);
testing_noteq(retValue,NULL,fails,"NtGdiDdCreateDirectDrawObject(NULL);\0");
retValue = OsThunkDdCreateDirectDrawObject(hdc);
testing_eq(retValue,NULL,fails,"NtGdiDdCreateDirectDrawObject(hdc);\0");
show_status(fails, "NtGdiDdCreateDirectDrawObject\0");
return retValue;
}