Author: jimtabor
Date: Wed Dec 12 05:29:21 2007
New Revision: 31174
URL:
http://svn.reactos.org/svn/reactos?rev=31174&view=rev
Log:
A partial implementation of NtGdiCreate/DeleteClientObj.
Modified:
trunk/reactos/subsystems/win32/win32k/objects/gdiobj.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/gdiobj.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/gdiobj.c (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/gdiobj.c Wed Dec 12 05:29:21 2007
@@ -1509,8 +1509,13 @@
IN ULONG ulType
)
{
- UNIMPLEMENTED;
- return 0;
+// INT Index;
+// PGDI_TABLE_ENTRY Entry;
+ HANDLE handle = GDIOBJ_AllocObj(GdiHandleTable, GDI_OBJECT_TAG_CLIOBJ);
+// Need to change handle type based on ulType.
+// Index = GDI_HANDLE_GET_INDEX((HGDIOBJ)handle);
+// Entry = &GdiHandleTable->Entries[Index];
+ return handle;
}
W32KAPI
@@ -1520,8 +1525,7 @@
IN HANDLE h
)
{
- UNIMPLEMENTED;
- return 0;
+ return GDIOBJ_FreeObj(GdiHandleTable, h, GDI_OBJECT_TAG_CLIOBJ);
}
/* EOF */