mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 12:23:25 +00:00
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.
svn path=/trunk/; revision=25786
This commit is contained in:
@@ -52,6 +52,19 @@ DD_Cleanup(PVOID ObjectBody)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
/* Documations how it works in windows and what we should do
|
||||
*
|
||||
* HANDLE NtGdiDdCreateDirectDrawObject(HDC hdc)
|
||||
*
|
||||
* Use CreateDCW(L”Display”,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 @@ NtGdiDdCreateDirectDrawObject(HDC hdc)
|
||||
|
||||
if (hdc == NULL)
|
||||
{
|
||||
DPRINT1("FIXME hdc is NULL \n");
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
@@ -184,6 +196,8 @@ NtGdiDdCreateDirectDrawObject(HDC hdc)
|
||||
return hDirectDraw;
|
||||
}
|
||||
|
||||
|
||||
|
||||
BOOL STDCALL
|
||||
NtGdiDdDeleteDirectDrawObject( HANDLE hDirectDrawLocal)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user