ReactOS 0.4.16-dev-112-g52265ae
NtGdiDdGetScanLine.c File Reference
#include <stdio.h>
#include <windows.h>
#include <wingdi.h>
#include <winddi.h>
#include <d3dnthal.h>
#include <dll/directx/d3d8thk.h>
#include "test.h"
Include dependency graph for NtGdiDdGetScanLine.c:

Go to the source code of this file.

Functions

void test_NtGdiDdGetScanLine (HANDLE hDirectDrawLocal)
 

Function Documentation

◆ test_NtGdiDdGetScanLine()

void test_NtGdiDdGetScanLine ( HANDLE  hDirectDrawLocal)

Definition at line 15 of file NtGdiDdGetScanLine.c.

16{
17 int fails=0;
18 BOOL retValue=FALSE;
19 DD_GETSCANLINEDATA puGetScanLineData;
20
21 printf("Start testing of NtGdiDdGetScanLine\n");
22 RtlZeroMemory(&puGetScanLineData,sizeof(DD_GETSCANLINEDATA));
23
24 retValue = OsThunkDdGetScanLine(NULL,NULL);
25 testing_eq(retValue, DDHAL_DRIVER_HANDLED,fails,"1. NtGdiDdGetScanLine(NULL,NULL);\0");
26
27 retValue = OsThunkDdGetScanLine(hDirectDrawLocal,NULL);
28 testing_eq(retValue, DDHAL_DRIVER_HANDLED,fails,"2. NtGdiDdGetScanLine(hDirectDrawLocal,NULL);\0");
29
30 puGetScanLineData.ddRVal = DDERR_GENERIC;
31 retValue = OsThunkDdGetScanLine(hDirectDrawLocal,&puGetScanLineData);
32 testing_eq(retValue,DDHAL_DRIVER_NOTHANDLED,fails,"3. NtGdiDdGetScanLine(hDirectDrawLocal,puGetScanLineData);\0");
33 testing_noteq(puGetScanLineData.ddRVal,DD_OK,fails,"4. NtGdiDdGetScanLine(hDirectDrawLocal,puGetScanLineData);\0");
34 testing_eq(puGetScanLineData.dwScanLine,0,fails,"4. NtGdiDdGetScanLine(hDirectDrawLocal,puGetScanLineData);\0");
35
36
37 /* FIXME DDERR_VERTICALBLANKINPROGRESS test */
38
39 show_status(fails, "NtGdiDdGetScanLine\0");
40}
DWORD WINAPI OsThunkDdGetScanLine(HANDLE hDirectDraw, PDD_GETSCANLINEDATA puGetScanLineData)
#define DDHAL_DRIVER_HANDLED
Definition: ddrawi.h:321
#define DDHAL_DRIVER_NOTHANDLED
Definition: ddrawi.h:320
#define NULL
Definition: types.h:112
#define FALSE
Definition: types.h:117
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
#define testing_noteq(input, value, counter, text)
Definition: test.h:32
#define DD_OK
Definition: ddraw.h:186
#define DDERR_GENERIC
Definition: ddraw.h:72
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:262

Referenced by main().