2007-03-04 11:57:44 +00:00
|
|
|
#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");
|
2007-10-19 23:01:40 +00:00
|
|
|
|
2007-03-04 11:57:44 +00:00
|
|
|
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");
|
2007-05-12 13:58:27 +00:00
|
|
|
}
|
|
|
|
|