add more dump output for win3kdxtest
[reactos.git] / rostests / dxtest / win32kdxtest / dump.c
index 7ff14ce..ee1b6aa 100644 (file)
@@ -1120,3 +1120,40 @@ dump_D3dDriverData(D3DNTHAL_GLOBALDRIVERDATA *puD3dDriverData, char *text)
         printf("none puD3dDriverData from the driver 0x%08lx\n",puD3dDriverData->dwSize);
     }
 }
         printf("none puD3dDriverData from the driver 0x%08lx\n",puD3dDriverData->dwSize);
     }
 }
+
+
+void
+dump_D3dBufferCallbacks(DD_D3DBUFCALLBACKS *puD3dBufferCallbacks, char *text)
+{
+    int count = 0;
+    DWORD flag = 0;
+
+    if (puD3dBufferCallbacks->dwSize == sizeof(DD_D3DBUFCALLBACKS))
+    {
+        printf(" puD3dBufferCallbacks->dwSize                                   : 0x%08lx\n",(long)puD3dBufferCallbacks->dwSize);
+        printf(" puD3dBufferCallbacks->dwFlags                                  : ");
+
+        /* rember this flags are not in msdn only in ms ddk */
+        count = 0;
+        flag = puD3dBufferCallbacks->dwFlags;
+        checkflag(flag,DDHAL_D3DBUFCB32_CANCREATED3DBUF,"DDHAL_D3DBUFCB32_CANCREATED3DBUF");
+        checkflag(flag,DDHAL_D3DBUFCB32_CREATED3DBUF,"DDHAL_D3DBUFCB32_CREATED3DBUF");
+
+        checkflag(flag,DDHAL_D3DBUFCB32_DESTROYD3DBUF,"DDHAL_D3DBUFCB32_DESTROYD3DBUF");
+
+        checkflag(flag,DDHAL_D3DBUFCB32_LOCKD3DBUF,"DDHAL_D3DBUFCB32_LOCKD3DBUF");
+        checkflag(flag,DDHAL_D3DBUFCB32_UNLOCKD3DBUF,"DDHAL_D3DBUFCB32_UNLOCKD3DBUF");                                
+        endcheckflag(flag,"ppuD3dBufferCallbacks->dwFlags"); 
+
+        printf(" puD3dBufferCallbacks->CanCreateD3DBuffer                       : 0x%08lx\n",(long)puD3dBufferCallbacks->CanCreateD3DBuffer);
+        printf(" puD3dBufferCallbacks->CreateD3DBuffer                          : 0x%08lx\n",(long)puD3dBufferCallbacks->CreateD3DBuffer);
+        printf(" puD3dBufferCallbacks->DestroyD3DBuffer                         : 0x%08lx\n",(long)puD3dBufferCallbacks->DestroyD3DBuffer);
+        printf(" puD3dBufferCallbacks->LockD3DBuffer                            : 0x%08lx\n",(long)puD3dBufferCallbacks->LockD3DBuffer);
+        printf(" puD3dBufferCallbacks->UnlockD3DBuffer                          : 0x%08lx\n",(long)puD3dBufferCallbacks->UnlockD3DBuffer);        
+    }
+    else
+    {
+        printf("none puD3dBufferCallbacks from the driver 0x%08lx\n",puD3dBufferCallbacks->dwSize);
+    }
+
+}