mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
prepare testkit for GetDeviceIdentifier
svn path=/trunk/; revision=27087
This commit is contained in:
@@ -12,8 +12,10 @@
|
||||
/* The List of tests */
|
||||
TEST TestList[] =
|
||||
{
|
||||
|
||||
{ "IDirectDraw: COM Stuff", Test_CreateDDraw },
|
||||
{ "IDirectDraw: Display Frequency", Test_GetMonitorFrequency },
|
||||
{ "IDirectDraw: GetDeviceIdentifier", Test_GetDeviceIdentifier },
|
||||
{ "IDirectDraw: Display Frequency", Test_GetMonitorFrequency },
|
||||
{ "IDirectDraw: Display Modes", Test_DisplayModes },
|
||||
{ "IDirectDraw: Available Video Memory", Test_GetAvailableVidMem },
|
||||
{ "IDirectDraw: GetFourCC", Test_GetFourCCCodes },
|
||||
|
||||
@@ -375,7 +375,21 @@ BOOL Test_GetFourCCCodes (INT* passed, INT* failed)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
BOOL Test_GetDeviceIdentifier (INT* passed, INT* failed)
|
||||
{
|
||||
LPDIRECTDRAW7 DirectDraw;
|
||||
|
||||
/* Preparations */
|
||||
if (DirectDrawCreateEx(NULL, (VOID**)&DirectDraw, IID_IDirectDraw7, NULL) != DD_OK)
|
||||
{
|
||||
printf("ERROR: Failed to set up ddraw\n");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
DirectDraw->Release();
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
LONG WINAPI BasicWindowProc (HWND hwnd, UINT message, UINT wParam, LONG lParam)
|
||||
|
||||
Reference in New Issue
Block a user