mirror of
https://github.com/reactos/reactos.git
synced 2024-10-29 19:13:58 +00:00
622c29bffb
svn path=/trunk/; revision=29688
30 lines
778 B
C
30 lines
778 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 can delete a DirectDrawObject from win32k
|
|
*
|
|
*/
|
|
void
|
|
test_NtGdiDdDeleteDirectDrawObject(HANDLE hDirectDrawLocal)
|
|
{
|
|
int fails=0;
|
|
BOOL retValue=FALSE;
|
|
printf("Start testing of NtGdiDdDeleteDirectDrawObject\n");
|
|
|
|
retValue = OsThunkDdDeleteDirectDrawObject(hDirectDrawLocal);
|
|
testing_eq(retValue,FALSE,fails,"NtGdiDdDeleteDirectDrawObject(hDirectDrawLocal);\0");
|
|
|
|
retValue = OsThunkDdDeleteDirectDrawObject(NULL);
|
|
testing_eq(retValue,TRUE,fails,"NtGdiDdDeleteDirectDrawObject(NULL);\0");
|
|
|
|
show_status(fails, "NtGdiDdDeleteDirectDrawObject\0");
|
|
}
|
|
|