Author: greatlrd Date: Sat Mar 15 16:00:58 2008 New Revision: 32695
URL: http://svn.reactos.org/svn/reactos?rev=3D32695&view=3Drev Log: update some comment that desc how some ntgdidd* works
Modified: trunk/reactos/subsystems/win32/win32k/ntddraw/d3d.c trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c
Modified: trunk/reactos/subsystems/win32/win32k/ntddraw/d3d.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win3= 2k/ntddraw/d3d.c?rev=3D32695&r1=3D32694&r2=3D32695&view=3Ddiff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- trunk/reactos/subsystems/win32/win32k/ntddraw/d3d.c (original) +++ trunk/reactos/subsystems/win32/win32k/ntddraw/d3d.c Sat Mar 15 16:00:58= 2008 @@ -22,7 +22,8 @@ * @implemented * * The function NtGdiDdCanCreateD3DBuffer checks if you can create a =
-* surface for DirectX. It is redirected to dxg.sys. +* surface for DirectX. it redirects to dxg.sys in windows XP/2003, =
+* dxkrnl.sys in vista and is fully implemented in win32k.sys in windows 20= 00 and below * * @param HANDLE hDirectDraw * The handle we got from NtGdiDdCreateDirectDrawObject @@ -49,6 +50,8 @@ * puCanCreateSurfaceData->lpDD is a pointer to DDRAWI_DIRECTDRAW_GBL, not= PDD_DIRECTDRAW_GLOBAL as MSDN claims. * puCanCreateSurfaceData->lpDD->hDD also needs be filled in with the handl= e we got from NtGdiDdCreateDirectDrawObject. * puCreateSurfaceData->CanCreateSurface is a pointer to the real functions= in the HAL or HEL, that you need fill in. +* Do not forget PDD_CANCREATESURFACEDATA is typecast of LPDDHAL_CANCREATES= URFACEDATA and thuse two struct are different size, +* the correct struct is LPDDHAL_CANCREATESURFACEDATA. * *--*/ =
@@ -74,7 +77,8 @@ * @implemented * * The Function NtGdiDdCanCreateD3DBuffer checks if you can create a =
-* surface for Directx. It redirects the call to dxg.sys. +* surface for Directx. It redirects to dxg.sys in windows XP/2003, =
+* dxkrnl.sys in vista and is fully implemented in win32k.sys in windows 20= 00 and below * * @param HANDLE hDirectDrawLocal * The handle we got from NtGdiDdCreateDirectDrawObject @@ -126,6 +130,8 @@ * @implemented * * The Function NtGdiD3dContextDestroy destorys the context data we got fro= m NtGdiD3dContextCreate +* It redirects to dxg.sys in windows XP/2003, dxkrnl.sys in vista and is = fully implemented =
+* in win32k.sys in windows 2000 and below * * @param LPD3DNTHAL_CONTEXTDESTROYDATA pContextDestroyData * The context data we want to destroy @@ -160,6 +166,8 @@ * * The Function NtGdiD3dContextDestroyAll destroys all the context data in = a process * The data having been allocated with NtGdiD3dContextCreate +* It redirects to dxg.sys in windows XP/2003, dxkrnl.sys in vista and is = fully implemented =
+* in win32k.sys in windows 2000 and below * * @param LPD3DNTHAL_CONTEXTDESTROYALLDATA pdcad * The context data we want to destory @@ -194,8 +202,9 @@ * @name NtGdiDdCreateD3DBuffer * @implemented * -* The function NtGdiDdCreateD3DBuffer creates a =
-* surface for DirectX. It is redirected to dxg.sys. +* The function NtGdiDdCreateD3DBuffer creates a surface for DirectX. =
+* It redirects to dxg.sys in windows XP/2003, dxkrnl.sys in vista and is = fully implemented =
+* in win32k.sys in windows 2000 and below * * @param HANDLE hDirectDraw * The handle we got from NtGdiDdCreateDirectDrawObject
Modified: trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win3= 2k/ntddraw/ddraw.c?rev=3D32695&r1=3D32694&r2=3D32695&view=3Ddiff =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D --- trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c (original) +++ trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c Sat Mar 15 16:00:= 58 2008 @@ -158,7 +158,7 @@ * @implemented * * The function NtGdiDxgGenericThunk redirects DirectX calls to another fun= ction. -* Redirection is done in dxg.sys in XP or higher. If dxg.sys does not exi= st, redirection takes place in win32k.sys +* It redirects to dxg.sys in windows XP/2003, dxkrnl.sys in vista and is f= ully implemented in win32k.sys in windows 2000 and below * * @param ULONG_PTR ulIndex * The functions we want to redirect