mirror of
https://github.com/reactos/reactos.git
synced 2024-08-06 11:24:58 +00:00
20 lines
681 B
C++
20 lines
681 B
C++
![]() |
#include "ddrawtest.h"
|
||
|
|
||
|
PCHAR DDErrorString (HRESULT hResult);
|
||
|
|
||
|
BOOL Test_CreateDDraw (INT* passed, INT* failed)
|
||
|
{
|
||
|
LPDIRECTDRAW7 DirectDraw;
|
||
|
IDirectDraw* DirectDraw2;
|
||
|
|
||
|
// FIXME: Test first parameter
|
||
|
|
||
|
TEST (DirectDrawCreateEx(NULL, (VOID**)&DirectDraw, IID_IDirectDraw7, (IUnknown*)0xdeadbeef) == CLASS_E_NOAGGREGATION);
|
||
|
TEST (DirectDrawCreateEx(NULL, (VOID**)&DirectDraw, IID_IDirectDraw4, NULL) == DDERR_INVALIDPARAMS);
|
||
|
TEST (DirectDrawCreateEx(NULL, NULL, IID_IDirectDraw7, NULL) == DDERR_INVALIDPARAMS);
|
||
|
TEST (DirectDrawCreateEx(NULL, (VOID**)&DirectDraw, IID_IDirectDraw7, NULL) == DD_OK);
|
||
|
TEST (DirectDrawCreate(NULL ,&DirectDraw2, NULL) == DD_OK);
|
||
|
|
||
|
return TRUE;
|
||
|
}
|