mirror of
https://github.com/reactos/reactos.git
synced 2024-08-22 19:33:01 +00:00
![Timo Kreuzer](/assets/img/avatar_default.png)
- Convert win32k native api test to actual wine style api-tests - Hack around a bit with the win32k dlls, some renaming, etc. - Delete old apitest stuff svn path=/trunk/; revision=70458
24 lines
586 B
C
24 lines
586 B
C
/*
|
|
* PROJECT: ReactOS api tests
|
|
* LICENSE: GPL - See COPYING in the top level directory
|
|
* PURPOSE: Test for NtGdiDdCreateDirectDrawObject
|
|
* PROGRAMMERS:
|
|
*/
|
|
|
|
#include <win32nt.h>
|
|
|
|
START_TEST(NtGdiDdCreateDirectDrawObject)
|
|
{
|
|
HANDLE hDirectDraw;
|
|
HDC hdc = CreateDCW(L"DISPLAY",NULL,NULL,NULL);
|
|
ok(hdc != NULL, "\n");
|
|
|
|
/* Test ReactX */
|
|
ok(NtGdiDdCreateDirectDrawObject(NULL) == NULL, "\n");
|
|
ok((hDirectDraw = NtGdiDdCreateDirectDrawObject(hdc)) != NULL, "\n");
|
|
|
|
/* Cleanup ReactX setup */
|
|
DeleteDC(hdc);
|
|
NtGdiDdDeleteDirectDrawObject(hDirectDraw);
|
|
}
|