Author: greatlrd
Date: Sat Feb 17 18:01:01 2007
New Revision: 25829
URL:
http://svn.reactos.org/svn/reactos?rev=25829&view=rev
Log:
adding file dump.c it contain printf stuff to dump some struct to the screen it can make
debuging more easy. but if u build reactos with DBG=0 you will not see the dump of the
stuct I mabe will add a option to it when u start this tools so it dump data when u use
the options.
Added:
trunk/rosapps/dxtest/win32kdxtest/dump.c (with props)
Modified:
trunk/rosapps/dxtest/win32kdxtest/main.c
trunk/rosapps/dxtest/win32kdxtest/test.h
trunk/rosapps/dxtest/win32kdxtest/win32kdxtest.rbuild
trunk/rosapps/dxtest/win32kdxtest/win32kdxtest_vc8_auto.vcproj
Added: trunk/rosapps/dxtest/win32kdxtest/dump.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rosapps/dxtest/win32kdxtest/dump.c…
==============================================================================
--- trunk/rosapps/dxtest/win32kdxtest/dump.c (added)
+++ trunk/rosapps/dxtest/win32kdxtest/dump.c Sat Feb 17 18:01:01 2007
@@ -1,0 +1,222 @@
+/* All testcase are base how windows 2000 sp4 acting */
+
+
+#include <stdio.h>
+#include <windows.h>
+#include <wingdi.h>
+#include <winddi.h>
+#include <d3dnthal.h>
+
+#include "test.h"
+
+
+void
+dump(DD_HALINFO *pHalInfo, char *text)
+{
+ printf("dumping the DD_HALINFO from %s\n",text);
+
+ if (pHalInfo->dwSize == sizeof(DD_HALINFO_V4))
+ {
+ DD_HALINFO_V4 *pHalInfo4 = (DD_HALINFO_V4 *) pHalInfo;
+ int t;
+
+ printf("DD_HALINFO Version NT4 found \n");
+ printf(" pHalInfo4->dwSize :
0x%08lx\n",(long)pHalInfo4->dwSize);
+ printf(" pHalInfo4->vmiData->fpPrimary :
0x%08lx\n",(long)pHalInfo4->vmiData.fpPrimary);
+ printf(" pHalInfo4->vmiData->dwFlags :
0x%08lx\n",(long)pHalInfo4->vmiData.dwFlags);
+ printf(" pHalInfo4->vmiData->dwDisplayWidth :
0x%08lx\n",(long)pHalInfo4->vmiData.dwDisplayWidth);
+ printf(" pHalInfo4->vmiData->dwDisplayHeight :
0x%08lx\n",(long)pHalInfo4->vmiData.dwDisplayHeight);
+ printf(" pHalInfo4->vmiData->lDisplayPitch :
0x%08lx\n",(long)pHalInfo4->vmiData.lDisplayPitch);
+
+ printf(" pHalInfo4->vmiData->ddpfDisplay.dwSize :
0x%08lx\n",(long)pHalInfo4->vmiData.ddpfDisplay.dwSize);
+ printf(" pHalInfo4->vmiData->ddpfDisplay.dwFlags :
0x%08lx\n",(long)pHalInfo4->vmiData.ddpfDisplay.dwFlags);
+ printf(" pHalInfo4->vmiData->ddpfDisplay.dwFourCC :
0x%08lx\n",(long)pHalInfo4->vmiData.ddpfDisplay.dwFourCC);
+ printf(" pHalInfo4->vmiData->ddpfDisplay.dwRGBBitCount :
0x%08lx\n",(long)pHalInfo4->vmiData.ddpfDisplay.dwRGBBitCount);
+ printf(" pHalInfo4->vmiData->ddpfDisplay.dwRBitMask :
0x%08lx\n",(long)pHalInfo4->vmiData.ddpfDisplay.dwRBitMask);
+ printf(" pHalInfo4->vmiData->ddpfDisplay.dwGBitMask :
0x%08lx\n",(long)pHalInfo4->vmiData.ddpfDisplay.dwGBitMask);
+ printf(" pHalInfo4->vmiData->ddpfDisplay.dwBBitMask :
0x%08lx\n",(long)pHalInfo4->vmiData.ddpfDisplay.dwBBitMask);
+ printf(" pHalInfo4->vmiData->ddpfDisplay.dwRGBAlphaBitMask :
0x%08lx\n",(long)pHalInfo4->vmiData.ddpfDisplay.dwRGBAlphaBitMask);
+
+ printf(" pHalInfo4->vmiData->dwOffscreenAlign :
0x%08lx\n",(long)pHalInfo4->vmiData.dwOffscreenAlign);
+ printf(" pHalInfo4->vmiData->dwOverlayAlign :
0x%08lx\n",(long)pHalInfo4->vmiData.dwOverlayAlign);
+ printf(" pHalInfo4->vmiData->dwTextureAlign :
0x%08lx\n",(long)pHalInfo4->vmiData.dwTextureAlign);
+ printf(" pHalInfo4->vmiData->dwZBufferAlign :
0x%08lx\n",(long)pHalInfo4->vmiData.dwZBufferAlign);
+ printf(" pHalInfo4->vmiData->dwAlphaAlign :
0x%08lx\n",(long)pHalInfo4->vmiData.dwAlphaAlign);
+ printf(" pHalInfo4->vmiData->pvPrimary :
0x%08lx\n",(long)pHalInfo4->vmiData.pvPrimary);
+
+ printf(" pHalInfo4->ddCaps.dwSize :
0x%08lx\n",pHalInfo4->ddCaps.dwSize);
+ printf(" pHalInfo4->ddCaps.dwCaps :
0x%08lx\n",pHalInfo4->ddCaps.dwCaps);
+ printf(" pHalInfo4->ddCaps.dwCaps2 :
0x%08lx\n",pHalInfo4->ddCaps.dwCaps2);
+ printf(" pHalInfo4->ddCaps.dwCKeyCaps :
0x%08lx\n",pHalInfo4->ddCaps.dwCKeyCaps);
+ printf(" pHalInfo4->ddCaps.dwFXCaps :
0x%08lx\n",pHalInfo4->ddCaps.dwFXCaps);
+ printf(" pHalInfo4->ddCaps.dwFXAlphaCaps :
0x%08lx\n",pHalInfo4->ddCaps.dwFXAlphaCaps);
+ printf(" pHalInfo4->ddCaps.dwPalCaps :
0x%08lx\n",pHalInfo4->ddCaps.dwPalCaps);
+ printf(" pHalInfo4->ddCaps.dwSVCaps :
0x%08lx\n",pHalInfo4->ddCaps.dwSVCaps);
+ printf(" pHalInfo4->ddCaps.dwAlphaBltConstBitDepths :
0x%08lx\n",pHalInfo4->ddCaps.dwAlphaBltConstBitDepths);
+ printf(" pHalInfo4->ddCaps.dwAlphaBltPixelBitDepths :
0x%08lx\n",pHalInfo4->ddCaps.dwAlphaBltPixelBitDepths);
+ printf(" pHalInfo4->ddCaps.dwAlphaBltSurfaceBitDepths :
0x%08lx\n",pHalInfo4->ddCaps.dwAlphaBltSurfaceBitDepths);
+ printf(" pHalInfo4->ddCaps.dwAlphaOverlayConstBitDepths :
0x%08lx\n",pHalInfo4->ddCaps.dwAlphaOverlayConstBitDepths);
+ printf(" pHalInfo4->ddCaps.dwAlphaOverlayPixelBitDepths :
0x%08lx\n",pHalInfo4->ddCaps.dwAlphaOverlayPixelBitDepths);
+ printf(" pHalInfo4->ddCaps.dwAlphaOverlaySurfaceBitDepths :
0x%08lx\n",pHalInfo4->ddCaps.dwAlphaOverlaySurfaceBitDepths);
+ printf(" pHalInfo4->ddCaps.dwZBufferBitDepths :
0x%08lx\n",pHalInfo4->ddCaps.dwZBufferBitDepths);
+ printf(" pHalInfo4->ddCaps.dwVidMemTotal :
0x%08lx\n",pHalInfo4->ddCaps.dwVidMemTotal);
+ printf(" pHalInfo4->ddCaps.dwVidMemFree :
0x%08lx\n",pHalInfo4->ddCaps.dwVidMemFree);
+ printf(" pHalInfo4->ddCaps.dwMaxVisibleOverlays :
0x%08lx\n",pHalInfo4->ddCaps.dwMaxVisibleOverlays);
+ printf(" pHalInfo4->ddCaps.dwCurrVisibleOverlays :
0x%08lx\n",pHalInfo4->ddCaps.dwCurrVisibleOverlays);
+ printf(" pHalInfo4->ddCaps.dwNumFourCCCodes :
0x%08lx\n",pHalInfo4->ddCaps.dwNumFourCCCodes);
+ printf(" pHalInfo4->ddCaps.dwAlignBoundarySrc :
0x%08lx\n",pHalInfo4->ddCaps.dwAlignBoundarySrc);
+ printf(" pHalInfo4->ddCaps.dwAlignSizeSrc :
0x%08lx\n",pHalInfo4->ddCaps.dwAlignSizeSrc);
+ printf(" pHalInfo4->ddCaps.dwAlignBoundaryDes :
0x%08lx\n",pHalInfo4->ddCaps.dwAlignBoundaryDest);
+ printf(" pHalInfo4->ddCaps.dwAlignSizeDest :
0x%08lx\n",pHalInfo4->ddCaps.dwAlignSizeDest);
+ printf(" pHalInfo4->ddCaps.dwAlignStrideAlign :
0x%08lx\n",pHalInfo4->ddCaps.dwAlignStrideAlign);
+ for (t=0;t<DD_ROP_SPACE;t++)
+ {
+ printf(" pHalInfo4->ddCaps.dwRops[0x%04x] :
0x%08lx\n",t,pHalInfo4->ddCaps.dwRops[t]);
+ }
+ printf(" pHalInfo4->ddCaps.ddsCaps.dwCaps :
0x%08lx\n",pHalInfo4->ddCaps.ddsCaps.dwCaps);
+ printf(" pHalInfo4->ddCaps.dwMinOverlayStretch :
0x%08lx\n",pHalInfo4->ddCaps.dwMinOverlayStretch);
+ printf(" pHalInfo4->ddCaps.dwMaxOverlayStretch :
0x%08lx\n",pHalInfo4->ddCaps.dwMaxOverlayStretch);
+ printf(" pHalInfo4->ddCaps.dwMinLiveVideoStretch :
0x%08lx\n",pHalInfo4->ddCaps.dwMinLiveVideoStretch);
+ printf(" pHalInfo4->ddCaps.dwMaxLiveVideoStretch :
0x%08lx\n",pHalInfo4->ddCaps.dwMaxLiveVideoStretch);
+ printf(" pHalInfo4->ddCaps.dwMinHwCodecStretch :
0x%08lx\n",pHalInfo4->ddCaps.dwMinHwCodecStretch);
+ printf(" pHalInfo4->ddCaps.dwMaxHwCodecStretch :
0x%08lx\n",pHalInfo4->ddCaps.dwMaxHwCodecStretch);
+ printf(" pHalInfo4->ddCaps.dwReserved1 :
0x%08lx\n",pHalInfo4->ddCaps.dwReserved1);
+ printf(" pHalInfo4->ddCaps.dwReserved2 :
0x%08lx\n",pHalInfo4->ddCaps.dwReserved2);
+ printf(" pHalInfo4->ddCaps.dwReserved3 :
0x%08lx\n",pHalInfo4->ddCaps.dwReserved3);
+ printf(" pHalInfo4->ddCaps.dwSVBCaps :
0x%08lx\n",pHalInfo4->ddCaps.dwSVBCaps);
+ printf(" pHalInfo4->ddCaps.dwSVBCKeyCaps :
0x%08lx\n",pHalInfo4->ddCaps.dwSVBCKeyCaps);
+ printf(" pHalInfo4->ddCaps.dwSVBFXCaps :
0x%08lx\n",pHalInfo4->ddCaps.dwSVBFXCaps);
+ for (t=0;t<DD_ROP_SPACE;t++)
+ {
+ printf(" pHalInfo4->ddCaps.dwSVBRops[0x%04x] :
0x%08lx\n",t,pHalInfo4->ddCaps.dwSVBRops[t]);
+ }
+ printf(" pHalInfo4->ddCaps.dwVSBCaps :
0x%08lx\n",pHalInfo4->ddCaps.dwVSBCaps);
+ printf(" pHalInfo4->ddCaps.dwVSBCKeyCaps :
0x%08lx\n",pHalInfo4->ddCaps.dwVSBCKeyCaps);
+ printf(" pHalInfo4->ddCaps.dwVSBFXCaps :
0x%08lx\n",pHalInfo4->ddCaps.dwVSBFXCaps);
+ for (t=0;t<DD_ROP_SPACE;t++)
+ {
+ printf(" pHalInfo4->ddCaps.dwVSBRops[0x%04x] :
0x%08lx\n",t,pHalInfo4->ddCaps.dwVSBRops[t]);
+ }
+ printf(" pHalInfo4->ddCaps.dwSSBCaps :
0x%08lx\n",pHalInfo4->ddCaps.dwSSBCaps);
+ printf(" pHalInfo4->ddCaps.dwSSBCKeyCa :
0x%08lx\n",pHalInfo4->ddCaps.dwSSBCKeyCaps);
+ printf(" pHalInfo4->ddCaps.dwSSBFXCaps :
0x%08lx\n",pHalInfo4->ddCaps.dwSSBFXCaps);
+ for (t=0;t<DD_ROP_SPACE;t++)
+ {
+ printf(" pHalInfo4->ddCaps.dwSSBRops[0x%04x] :
0x%08lx\n",t,pHalInfo4->ddCaps.dwSSBRops[t]);
+ }
+
+ printf(" pHalInfo4->ddCaps.dwMaxVideoPorts :
0x%08lx\n",pHalInfo4->ddCaps.dwMaxVideoPorts);
+ printf(" pHalInfo4->ddCaps.dwCurrVideoPorts :
0x%08lx\n",pHalInfo4->ddCaps.dwCurrVideoPorts);
+ printf(" pHalInfo4->ddCaps.dwSVBCaps2 :
0x%08lx\n",pHalInfo4->ddCaps.dwSVBCaps2);
+
+
+ printf(" pHalInfo4->GetDriverInfo :
0x%08lx\n",(long)pHalInfo4->GetDriverInfo);
+ printf(" pHalInfo4->dwFlags :
0x%08lx\n",(long)pHalInfo4->dwFlags);
+
+ }
+ else if (pHalInfo->dwSize == sizeof(DD_HALINFO))
+ {
+ int t;
+
+ printf("DD_HALINFO Version NT 2000/XP/2003 found \n");
+ printf(" pHalInfo->dwSize :
0x%08lx\n",(long)pHalInfo->dwSize);
+
+ printf(" pHalInfo->vmiData->fpPrimary :
0x%08lx\n",(long)pHalInfo->vmiData.fpPrimary);
+ printf(" pHalInfo->vmiData->dwFlags :
0x%08lx\n",(long)pHalInfo->vmiData.dwFlags);
+ printf(" pHalInfo->vmiData->dwDisplayWidth :
0x%08lx\n",(long)pHalInfo->vmiData.dwDisplayWidth);
+ printf(" pHalInfo->vmiData->dwDisplayHeight :
0x%08lx\n",(long)pHalInfo->vmiData.dwDisplayHeight);
+ printf(" pHalInfo->vmiData->lDisplayPitch :
0x%08lx\n",(long)pHalInfo->vmiData.lDisplayPitch);
+
+ printf(" pHalInfo->vmiData->ddpfDisplay.dwSize :
0x%08lx\n",(long)pHalInfo->vmiData.ddpfDisplay.dwSize);
+ printf(" pHalInfo->vmiData->ddpfDisplay.dwFlags :
0x%08lx\n",(long)pHalInfo->vmiData.ddpfDisplay.dwFlags);
+ printf(" pHalInfo->vmiData->ddpfDisplay.dwFourCC :
0x%08lx\n",(long)pHalInfo->vmiData.ddpfDisplay.dwFourCC);
+ printf(" pHalInfo->vmiData->ddpfDisplay.dwRGBBitCount :
0x%08lx\n",(long)pHalInfo->vmiData.ddpfDisplay.dwRGBBitCount);
+ printf(" pHalInfo->vmiData->ddpfDisplay.dwRBitMask :
0x%08lx\n",(long)pHalInfo->vmiData.ddpfDisplay.dwRBitMask);
+ printf(" pHalInfo->vmiData->ddpfDisplay.dwGBitMask :
0x%08lx\n",(long)pHalInfo->vmiData.ddpfDisplay.dwGBitMask);
+ printf(" pHalInfo->vmiData->ddpfDisplay.dwBBitMask :
0x%08lx\n",(long)pHalInfo->vmiData.ddpfDisplay.dwBBitMask);
+ printf(" pHalInfo->vmiData->ddpfDisplay.dwRGBAlphaBitMask :
0x%08lx\n",(long)pHalInfo->vmiData.ddpfDisplay.dwRGBAlphaBitMask);
+
+
+ printf(" pHalInfo->vmiData->dwOffscreenAlign :
0x%08lx\n",(long)pHalInfo->vmiData.dwOffscreenAlign);
+ printf(" pHalInfo->vmiData->dwOverlayAlign :
0x%08lx\n",(long)pHalInfo->vmiData.dwOverlayAlign);
+ printf(" pHalInfo->vmiData->dwTextureAlign :
0x%08lx\n",(long)pHalInfo->vmiData.dwTextureAlign);
+ printf(" pHalInfo->vmiData->dwZBufferAlign :
0x%08lx\n",(long)pHalInfo->vmiData.dwZBufferAlign);
+ printf(" pHalInfo->vmiData->dwAlphaAlign :
0x%08lx\n",(long)pHalInfo->vmiData.dwAlphaAlign);
+ printf(" pHalInfo->vmiData->pvPrimary :
0x%08lx\n",(long)pHalInfo->vmiData.pvPrimary);
+
+ printf(" pHalInfo->ddCaps.dwSize :
0x%08lx\n",pHalInfo->ddCaps.dwSize);
+ printf(" pHalInfo->ddCaps.dwCaps :
0x%08lx\n",pHalInfo->ddCaps.dwCaps);
+ printf(" pHalInfo->ddCaps.dwCaps2 :
0x%08lx\n",pHalInfo->ddCaps.dwCaps2);
+ printf(" pHalInfo->ddCaps.dwCKeyCaps :
0x%08lx\n",pHalInfo->ddCaps.dwCKeyCaps);
+ printf(" pHalInfo->ddCaps.dwFXCaps :
0x%08lx\n",pHalInfo->ddCaps.dwFXCaps);
+ printf(" pHalInfo->ddCaps.dwFXAlphaCaps :
0x%08lx\n",pHalInfo->ddCaps.dwFXAlphaCaps);
+ printf(" pHalInfo->ddCaps.dwPalCaps :
0x%08lx\n",pHalInfo->ddCaps.dwPalCaps);
+ printf(" pHalInfo->ddCaps.dwSVCaps :
0x%08lx\n",pHalInfo->ddCaps.dwSVCaps);
+ printf(" pHalInfo->ddCaps.dwAlphaBltConstBitDepths :
0x%08lx\n",pHalInfo->ddCaps.dwAlphaBltConstBitDepths);
+ printf(" pHalInfo->ddCaps.dwAlphaBltPixelBitDepths :
0x%08lx\n",pHalInfo->ddCaps.dwAlphaBltPixelBitDepths);
+ printf(" pHalInfo->ddCaps.dwAlphaBltSurfaceBitDepths :
0x%08lx\n",pHalInfo->ddCaps.dwAlphaBltSurfaceBitDepths);
+ printf(" pHalInfo->ddCaps.dwAlphaOverlayConstBitDepths :
0x%08lx\n",pHalInfo->ddCaps.dwAlphaOverlayConstBitDepths);
+ printf(" pHalInfo->ddCaps.dwAlphaOverlayPixelBitDepths :
0x%08lx\n",pHalInfo->ddCaps.dwAlphaOverlayPixelBitDepths);
+ printf(" pHalInfo->ddCaps.dwAlphaOverlaySurfaceBitDepths :
0x%08lx\n",pHalInfo->ddCaps.dwAlphaOverlaySurfaceBitDepths);
+ printf(" pHalInfo->ddCaps.dwZBufferBitDepths :
0x%08lx\n",pHalInfo->ddCaps.dwZBufferBitDepths);
+ printf(" pHalInfo->ddCaps.dwVidMemTotal :
0x%08lx\n",pHalInfo->ddCaps.dwVidMemTotal);
+ printf(" pHalInfo->ddCaps.dwVidMemFree :
0x%08lx\n",pHalInfo->ddCaps.dwVidMemFree);
+ printf(" pHalInfo->ddCaps.dwMaxVisibleOverlays :
0x%08lx\n",pHalInfo->ddCaps.dwMaxVisibleOverlays);
+ printf(" pHalInfo->ddCaps.dwCurrVisibleOverlays :
0x%08lx\n",pHalInfo->ddCaps.dwCurrVisibleOverlays);
+ printf(" pHalInfo->ddCaps.dwNumFourCCCodes :
0x%08lx\n",pHalInfo->ddCaps.dwNumFourCCCodes);
+ printf(" pHalInfo->ddCaps.dwAlignBoundarySrc :
0x%08lx\n",pHalInfo->ddCaps.dwAlignBoundarySrc);
+ printf(" pHalInfo->ddCaps.dwAlignSizeSrc :
0x%08lx\n",pHalInfo->ddCaps.dwAlignSizeSrc);
+ printf(" pHalInfo->ddCaps.dwAlignBoundaryDes :
0x%08lx\n",pHalInfo->ddCaps.dwAlignBoundaryDest);
+ printf(" pHalInfo->ddCaps.dwAlignSizeDest :
0x%08lx\n",pHalInfo->ddCaps.dwAlignSizeDest);
+ printf(" pHalInfo->ddCaps.dwAlignStrideAlign :
0x%08lx\n",pHalInfo->ddCaps.dwAlignStrideAlign);
+ for (t=0;t<DD_ROP_SPACE;t++)
+ {
+ printf(" pHalInfo->ddCaps.dwRops[0x%04x] :
0x%08lx\n",t,pHalInfo->ddCaps.dwRops[t]);
+ }
+ printf(" pHalInfo->ddCaps.ddsCaps.dwCaps :
0x%08lx\n",pHalInfo->ddCaps.ddsCaps.dwCaps);
+ printf(" pHalInfo->ddCaps.dwMinOverlayStretch :
0x%08lx\n",pHalInfo->ddCaps.dwMinOverlayStretch);
+ printf(" pHalInfo->ddCaps.dwMaxOverlayStretch :
0x%08lx\n",pHalInfo->ddCaps.dwMaxOverlayStretch);
+ printf(" pHalInfo->ddCaps.dwMinLiveVideoStretch :
0x%08lx\n",pHalInfo->ddCaps.dwMinLiveVideoStretch);
+ printf(" pHalInfo->ddCaps.dwMaxLiveVideoStretch :
0x%08lx\n",pHalInfo->ddCaps.dwMaxLiveVideoStretch);
+ printf(" pHalInfo->ddCaps.dwMinHwCodecStretch :
0x%08lx\n",pHalInfo->ddCaps.dwMinHwCodecStretch);
+ printf(" pHalInfo->ddCaps.dwMaxHwCodecStretch :
0x%08lx\n",pHalInfo->ddCaps.dwMaxHwCodecStretch);
+ printf(" pHalInfo->ddCaps.dwReserved1 :
0x%08lx\n",pHalInfo->ddCaps.dwReserved1);
+ printf(" pHalInfo->ddCaps.dwReserved2 :
0x%08lx\n",pHalInfo->ddCaps.dwReserved2);
+ printf(" pHalInfo->ddCaps.dwReserved3 :
0x%08lx\n",pHalInfo->ddCaps.dwReserved3);
+ printf(" pHalInfo->ddCaps.dwSVBCaps :
0x%08lx\n",pHalInfo->ddCaps.dwSVBCaps);
+ printf(" pHalInfo->ddCaps.dwSVBCKeyCaps :
0x%08lx\n",pHalInfo->ddCaps.dwSVBCKeyCaps);
+ printf(" pHalInfo->ddCaps.dwSVBFXCaps :
0x%08lx\n",pHalInfo->ddCaps.dwSVBFXCaps);
+ for (t=0;t<DD_ROP_SPACE;t++)
+ {
+ printf(" pHalInfo->ddCaps.dwSVBRops[0x%04x] :
0x%08lx\n",t,pHalInfo->ddCaps.dwSVBRops[t]);
+ }
+ printf(" pHalInfo->ddCaps.dwVSBCaps :
0x%08lx\n",pHalInfo->ddCaps.dwVSBCaps);
+ printf(" pHalInfo->ddCaps.dwVSBCKeyCaps :
0x%08lx\n",pHalInfo->ddCaps.dwVSBCKeyCaps);
+ printf(" pHalInfo->ddCaps.dwVSBFXCaps :
0x%08lx\n",pHalInfo->ddCaps.dwVSBFXCaps);
+ for (t=0;t<DD_ROP_SPACE;t++)
+ {
+ printf(" pHalInfo->ddCaps.dwVSBRops[0x%04x] :
0x%08lx\n",t,pHalInfo->ddCaps.dwVSBRops[t]);
+ }
+ printf(" pHalInfo->ddCaps.dwSSBCaps :
0x%08lx\n",pHalInfo->ddCaps.dwSSBCaps);
+ printf(" pHalInfo->ddCaps.dwSSBCKeyCa :
0x%08lx\n",pHalInfo->ddCaps.dwSSBCKeyCaps);
+ printf(" pHalInfo->ddCaps.dwSSBFXCaps :
0x%08lx\n",pHalInfo->ddCaps.dwSSBFXCaps);
+ for (t=0;t<DD_ROP_SPACE;t++)
+ {
+ printf(" pHalInfo->ddCaps.dwSSBRops[0x%04x] :
0x%08lx\n",t,pHalInfo->ddCaps.dwSSBRops[t]);
+ }
+
+
+
+ printf(" pHalInfo->GetDriverInfo :
0x%08lx\n",(long)pHalInfo->GetDriverInfo);
+ printf(" pHalInfo->dwFlags :
0x%08lx\n",(long)pHalInfo->dwFlags);
+
+ printf(" pHalInfo->lpD3DGlobalDriverData :
0x%08lx\n",(long)pHalInfo->lpD3DGlobalDriverData);
+ printf(" pHalInfo->lpD3DHALCallbacks :
0x%08lx\n",(long)pHalInfo->lpD3DHALCallbacks);
+ printf(" pHalInfo->lpD3DBufCallbacks :
0x%08lx\n",(long)pHalInfo->lpD3DBufCallbacks);
+ }
+ else
+ {
+ printf("unkonwn dwSize DD_HALINFO : the size found is
0x%8lx\n",pHalInfo->dwSize);
+ }
+}
+
Propchange: trunk/rosapps/dxtest/win32kdxtest/dump.c
------------------------------------------------------------------------------
svn:eol-style = native
Modified: trunk/rosapps/dxtest/win32kdxtest/main.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rosapps/dxtest/win32kdxtest/main.c…
==============================================================================
--- trunk/rosapps/dxtest/win32kdxtest/main.c (original)
+++ trunk/rosapps/dxtest/win32kdxtest/main.c Sat Feb 17 18:01:01 2007
@@ -102,15 +102,15 @@
DWORD *puFourCC = NULL;
DD_HALINFO HalInfo;
- DWORD CallBackFlags = 0;
+ DWORD CallBackFlags[4];
D3DNTHAL_CALLBACKS D3dCallbacks;
D3DNTHAL_GLOBALDRIVERDATA D3dDriverData;
DD_D3DBUFCALLBACKS D3dBufferCallbacks;
DDSURFACEDESC D3dTextureFormats;
- DWORD NumHeaps = 0;
+ //DWORD NumHeaps = 0;
VIDEOMEMORY vmList;
- DWORD NumFourCC = 0;
- DWORD FourCC = 0;
+ //DWORD NumFourCC = 0;
+ //DWORD FourCC = 0;
/* clear data */
memset(&vmList,0,sizeof(VIDEOMEMORY));
@@ -119,6 +119,7 @@
memset(&D3dDriverData,0,sizeof(D3DNTHAL_GLOBALDRIVERDATA));
memset(&D3dCallbacks,0,sizeof(D3DNTHAL_CALLBACKS));
memset(&HalInfo,0,sizeof(DD_HALINFO));
+ memset(CallBackFlags,0,sizeof(DWORD)*3);
printf("Start testing of NtGdiDdQueryDirectDrawObject\n");
@@ -180,6 +181,19 @@
testing_noteq(puFourCC,NULL,fails,"9.
NtGdiDdQueryDirectDrawObject(hDirectDrawLocal, pHalInfo, NULL, ...);\0");
testing_noteq(pHalInfo->dwSize,sizeof(DD_HALINFO),fails,"10.
NtGdiDdQueryDirectDrawObject(hDirectDrawLocal, pHalInfo, NULL, ...);\0");
+#if DBG
+ dump(pHalInfo, "NtGdiDdQueryDirectDrawObject frist call");
+#endif
+
+ //pCallBackFlags = (DWORD *)&CallBackFlags;
+
+ //retValue = sysNtGdiDdQueryDirectDrawObject( hDirectDrawLocal, NULL,
+ // pCallBackFlags, puD3dCallbacks,
+ // puD3dDriverData, puD3dBufferCallbacks,
+ // puD3dTextureFormats, puNumHeaps,
+ // puvmList, puNumFourCC,
+ // puFourCC);
+
show_status(fails, "NtGdiDdQueryDirectDrawObject\0");
}
Modified: trunk/rosapps/dxtest/win32kdxtest/test.h
URL:
http://svn.reactos.org/svn/reactos/trunk/rosapps/dxtest/win32kdxtest/test.h…
==============================================================================
--- trunk/rosapps/dxtest/win32kdxtest/test.h (original)
+++ trunk/rosapps/dxtest/win32kdxtest/test.h Sat Feb 17 18:01:01 2007
@@ -4,7 +4,7 @@
void test_NtGdiDdDeleteDirectDrawObject(HANDLE hDirectDrawLocal);
void test_NtGdiDdQueryDirectDrawObject( HANDLE hDirectDrawLocal);
-
+void dump(DD_HALINFO *pHalInfo, char *text);
HANDLE sysNtGdiDdCreateDirectDrawObject(HDC hdc);
BOOL sysNtGdiDdDeleteDirectDrawObject( HANDLE hDirectDrawLocal);
Modified: trunk/rosapps/dxtest/win32kdxtest/win32kdxtest.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/rosapps/dxtest/win32kdxtest/win32k…
==============================================================================
--- trunk/rosapps/dxtest/win32kdxtest/win32kdxtest.rbuild (original)
+++ trunk/rosapps/dxtest/win32kdxtest/win32kdxtest.rbuild Sat Feb 17 18:01:01 2007
@@ -8,6 +8,7 @@
<library>user32</library>
<library>gdi32</library>
<file>main.c</file>
+ <file>dump.c</file>
<file>../../../../dll/win32/gdi32/misc/win32k.S</file>
Modified: trunk/rosapps/dxtest/win32kdxtest/win32kdxtest_vc8_auto.vcproj
URL:
http://svn.reactos.org/svn/reactos/trunk/rosapps/dxtest/win32kdxtest/win32k…
==============================================================================
--- trunk/rosapps/dxtest/win32kdxtest/win32kdxtest_vc8_auto.vcproj (original)
+++ trunk/rosapps/dxtest/win32kdxtest/win32kdxtest_vc8_auto.vcproj Sat Feb 17 18:01:01
2007
@@ -577,6 +577,10 @@
Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat;S"
<File
+ RelativePath=".\dump.c"
+ >
+ </File>
+ <File
RelativePath=".\main.c"
</File>