Sync to trunk (r46918)
[reactos.git] / subsystems / win32 / win32k / include / gdiobj.h
index 29f3ea2..16b7e93 100644 (file)
@@ -132,3 +132,6 @@ GDIOBJ_IncrementShareCount(POBJ Object)
 #endif
 
 INT FASTCALL GreGetObjectOwner(HGDIOBJ, GDIOBJTYPE);
+
+#define GDIOBJ_GetKernelObj(Handle) \
+  ((PGDI_TABLE_ENTRY)&GdiHandleTable->Entries[GDI_HANDLE_GET_INDEX(Handle)])->KernelData