ReactOS 0.4.15-dev-7994-gb388cb6
NtGdiDdDeleteDirectDrawObject.c
Go to the documentation of this file.
1#include <stdio.h>
2/* SDK/DDK/NDK Headers. */
3#include <windows.h>
4#include <wingdi.h>
5#include <winddi.h>
6#include <d3dnthal.h>
8#include "test.h"
9
10/*
11 * Test see if we can delete a DirectDrawObject from win32k
12 *
13 */
14void
16{
17 int fails=0;
18 BOOL retValue=FALSE;
19 printf("Start testing of NtGdiDdDeleteDirectDrawObject\n");
20
21 retValue = OsThunkDdDeleteDirectDrawObject(hDirectDrawLocal);
22 testing_eq(retValue,FALSE,fails,"NtGdiDdDeleteDirectDrawObject(hDirectDrawLocal);\0");
23
25 testing_eq(retValue,TRUE,fails,"NtGdiDdDeleteDirectDrawObject(NULL);\0");
26
27 show_status(fails, "NtGdiDdDeleteDirectDrawObject\0");
28}
29
BOOL WINAPI OsThunkDdDeleteDirectDrawObject(HANDLE hDirectDrawLocal)
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
void test_NtGdiDdDeleteDirectDrawObject(HANDLE hDirectDrawLocal)
unsigned int BOOL
Definition: ntddk_ex.h:94
#define printf
Definition: freeldr.h:97
#define testing_eq(input, value, counter, text)
Definition: test.h:24
#define show_status(counter, text)
Definition: test.h:40