Author: greatlrd
Date: Sun Jul 16 22:12:13 2006
New Revision: 23087
URL:
http://svn.reactos.org/svn/reactos?rev=23087&view=rev
Log:
start implement of gdientry2, for moment it return incorrect info. and does not fill some
stuff right.
we are return alot of kernel pointer and does not setup alot stuff right, see it as start
ground.
I do not want lose this start code again. it will be add in modifcate alot.
Modified:
trunk/reactos/dll/win32/gdi32/misc/gdientry.c
Modified: trunk/reactos/dll/win32/gdi32/misc/gdientry.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/misc/gdien…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/misc/gdientry.c (original)
+++ trunk/reactos/dll/win32/gdi32/misc/gdientry.c Sun Jul 16 22:12:13 2006
@@ -115,8 +115,34 @@
LPDWORD pdwFourCC,
LPVIDMEM pvmList)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return 0;
+ BOOL bStatus = FALSE;
+ DD_HALINFO DDHalInfo;
+ LPVOID pCallBackFlags[3];
+ DWORD NumHeaps;
+ DWORD NumFourCC;
+
+ DDHalInfo.dwSize = sizeof(DD_HALINFO);
+
+ pCallBackFlags[0] = pDDCallbacks;
+ pCallBackFlags[1] = pDDSurfaceCallbacks;
+ pCallBackFlags[2] = pDDPaletteCallbacks;
+
+ bStatus = NtGdiDdQueryDirectDrawObject(
+ (HANDLE)pDirectDrawGlobal->hDD,
+ (DD_HALINFO *)&DDHalInfo,
+ (DWORD *)pCallBackFlags,
+ (LPD3DNTHAL_CALLBACKS)pD3dCallbacks,
+ (LPD3DNTHAL_GLOBALDRIVERDATA)pD3dDriverData,
+ (PDD_D3DBUFCALLBACKS)pD3dBufferCallbacks,
+ (LPDDSURFACEDESC)pD3dTextureFormats,
+ (DWORD *)&NumHeaps,
+ (VIDEOMEMORY *)pvmList,
+ (DWORD *)&NumFourCC,
+ (DWORD *)pdwFourCC);
+
+
+ //SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ return bStatus;
}
/*