Author: greatlrd Date: Sun Feb 11 18:19:22 2007 New Revision: 25786
URL: http://svn.reactos.org/svn/reactos?rev=25786&view=rev Log: adding some comment after review how it works in windows. I doing my own syscall in windows 2000 to see how it act and base my knowledges of that to correct some part of win32k dx handling.
Modified: trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c
Modified: trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntd... ============================================================================== --- trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c (original) +++ trunk/reactos/subsystems/win32/win32k/ntddraw/ddraw.c Sun Feb 11 18:19:22 2007 @@ -52,6 +52,19 @@ return TRUE; }
+ +/* Documations how it works in windows and what we should do +* + * HANDLE NtGdiDdCreateDirectDrawObject(HDC hdc) + * + * Use CreateDCW(LDisplay,NULL,NULL,NULL); or some thing else to create a DC. +.* + * A NULL DC are not accpect it return 0 as error + * + * How the interal works see msdn and ddk that is egunt inforamtions to figour or see reactos + * source code. ReactOS interal working diffent here what windows does. + */ + HANDLE STDCALL NtGdiDdCreateDirectDrawObject(HDC hdc) { @@ -80,7 +93,6 @@
if (hdc == NULL) { - DPRINT1("FIXME hdc is NULL \n"); return NULL; } } @@ -183,6 +195,8 @@ DPRINT1("DirectDraw return handler 0x%x\n",hDirectDraw); return hDirectDraw; } + +
BOOL STDCALL NtGdiDdDeleteDirectDrawObject( HANDLE hDirectDrawLocal)