Author: greatlrd
Date: Sat Mar 15 19:22:29 2008
New Revision: 32697
URL: http://svn.reactos.org/svn/reactos?rev=3D32697&view=3Drev
Log:
fix a old copy and paste comment text so it say right
Modified:
trunk/reactos/subsystems/win32/win32k/ntddraw/d3d.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=3D32697&r1=3D32696&r2=3D32697&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 19:22:29=
2008
@@ -76,8 +76,8 @@
* @name NtGdiD3dContextCreate
* @implemented
*
-* The Function NtGdiDdCanCreateD3DBuffer checks if you can create a =
-* surface for Directx. It redirects to dxg.sys in windows XP/2003, =
+* The Function NtGdiD3dContextCreate checks if you can create a =
+* context 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
Author: greatlrd
Date: Sat Mar 15 19:16:42 2008
New Revision: 32696
URL: http://svn.reactos.org/svn/reactos?rev=3D32696&view=3Drev
Log:
update the docs for NtGdiD3dContextCreate
some points I did not make clear how it works. =
Modified:
trunk/reactos/subsystems/win32/win32k/ntddraw/d3d.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=3D32696&r1=3D32695&r2=3D32696&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 19:16:42=
2008
@@ -89,29 +89,35 @@
* @param HANDLE hSurfZ
* Handle to a DD_SURFACE_LOCAL. It is the Z deep buffer. According MSDN if=
it is set to NULL nothing should happen.
*
-* @param D3DNTHAL_CONTEXTCREATEDATA* hSurfZ
+* @param LPD3DNTHAL_CONTEXTCREATEDATA pdcci
* The buffer to create the context data
*
* @return =
* DDHAL_DRIVER_HANDLED or DDHAL_DRIVER_NOTHANDLED if the driver supports t=
his function.
* A full check is done by checking if the return value is DDHAL_DRIVER_HAN=
DLED =
-* and puCanCreateSurfaceData->ddRVal is set to DD_OK.
+* and pdcci->ddRVal is set to DD_OK.
*
*
* @remarks.
* dxg.sys NtGdiD3dContextCreate calls are redirected to the same function =
in the dxg.sys. As such they all work the same way.
*
-* Before calling this function please set the hSurfZ->ddRVal to an error v=
alue such as DDERR_NOTUSPORTED,
+* Before calling this function please set the pdcci->ddRVal to an error va=
lue such as DDERR_NOTSUPORTED,
* for the ddRVal will otherwise be unchanged even if an error occurs insid=
e the driver. =
-* hSurfZ->dwhContext also needs to be filled in with the handle we got fro=
m NtGdiDdCreateDirectDrawObject
-*
+*
+* pdcci->lpDDLcl is a pointer to DDRAWI_DIRECTDRAW_LCL, not DD_DIRECTDRAW_=
LOCAL as MSDN claims.
+* pdcci->lpDDSLcl is a pointer to DDRAWI_DDRAWSURFACE_LCL, not DD_DDDRAWSU=
RFACE_LOCAL as MSDN claims.
+* pdcci->lpDDSZLcl is a pointer to DDRAWI_DDRAWSURFACE_LCL, not DD_DDRAWSU=
RFACE_LOCAL as MSDN claims.
+* pdcci->dwhContext also needs be filled in with the handle we receive fro=
m NtGdiDdCreateDirectDrawObject.
+* pdcci->dwPID the processid it belong to, that you need to fill in.
+* Do not forget LPD3DNTHAL_CONTEXTCREATEDATA is typecast of LPD3DHAL_CONTE=
XTCREATEDATA and thuse two struct are different size,
+* the correct struct is LPD3DHAL_CONTEXTCREATEDATA.
*--*/
BOOL =
STDCALL
NtGdiD3dContextCreate(HANDLE hDirectDrawLocal,
HANDLE hSurfColor,
HANDLE hSurfZ,
- D3DNTHAL_CONTEXTCREATEDATA* pdcci)
+ LPD3DNTHAL_CONTEXTCREATEDATA pdcci)
{
PGD_D3DCONTEXTCREATE pfnD3dContextCreate =3D (PGD_D3DCONTEXTCREATE)gpD=
xFuncs[DXG_INDEX_DxD3dContextCreate].pfn;
=
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