Getting the pain in the ass api DxDdCreateDirectDrawObject inside ms dxg.sys working...
authorMagnus Olsen <magnus@greatlord.com>
Sun, 27 Apr 2008 17:00:06 +0000 (17:00 +0000)
committerMagnus Olsen <magnus@greatlord.com>
Sun, 27 Apr 2008 17:00:06 +0000 (17:00 +0000)
it needs a negtive value set in struct edd_directdraw_global member llAssertModeTimeout.

svn path=/trunk/; revision=33169

reactos/include/reactos/drivers/directx/directxint.h
reactos/subsystems/win32/win32k/ntddraw/ddraw.c

index 8b60eb6..3f2df74 100644 (file)
@@ -11,7 +11,7 @@ typedef struct _EDD_DIRECTDRAW_LOCAL
     //
     // GDI Object Header
     //
-    DD_BASEOBJECT pobj;
+/* 0x00 */    DD_BASEOBJECT pobj; // verify it match windows xp
 /* 0x10 */    struct _EDD_DIRECTDRAW_GLOBAL * peDirectDrawGlobal;    // verify it match windows xp
 /* 0x14 */    struct _EDD_SURFACE * peSurface_DdList;
 /* 0x18 */    ULONG unk_018;
index d96c061..9d7a117 100644 (file)
@@ -253,6 +253,9 @@ intEnableReactXDriver(PEDD_DIRECTDRAW_GLOBAL pEddgbl, PDC pDC)
     /* setup missing data in ddHalInfo */
     //pEddgbl->ddHalInfo.GetDriverInfo = (PVOID)pDev->DriverFunctions.GetDirectDrawInfo;
 
+    /* FIXME : hack ? it will let us DxDdQueryDirectDrawObject if the llAssertModeTimeout contain negtive value -1*/
+    pEddgbl->llAssertModeTimeout.QuadPart = -1;
+
     /* FIXME : remove this when we are done with debuging of dxg */
     dump_edd_directdraw_global(pEddgbl);
     dump_halinfo(&pEddgbl->ddHalInfo);