Author: greatlrd
Date: Sat Jun  9 17:23:18 2007
New Revision: 27087
URL: 
http://svn.reactos.org/svn/reactos?rev=27087&view=rev
Log:
prepare testkit for GetDeviceIdentifier
Modified:
    trunk/rostests/dxtest/ddraw/testlist.cpp
    trunk/rostests/dxtest/ddraw/tests/CreateDDraw.cpp
Modified: trunk/rostests/dxtest/ddraw/testlist.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/dxtest/ddraw/testlist.cpp…
==============================================================================
--- trunk/rostests/dxtest/ddraw/testlist.cpp (original)
+++ trunk/rostests/dxtest/ddraw/testlist.cpp Sat Jun  9 17:23:18 2007
@@ -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 },
Modified: trunk/rostests/dxtest/ddraw/tests/CreateDDraw.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/dxtest/ddraw/tests/Create…
==============================================================================
--- trunk/rostests/dxtest/ddraw/tests/CreateDDraw.cpp (original)
+++ trunk/rostests/dxtest/ddraw/tests/CreateDDraw.cpp Sat Jun  9 17:23:18 2007
@@ -375,7 +375,21 @@
        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)