#define GDI_ENTRY_GET_REUSECNT(e) \\r
((((ULONG_PTR)(e)) & GDI_ENTRY_REUSE_MASK) >> GDI_ENTRY_REUSECNT_SHIFT)\r
\r
+/* DC OBJ Types */\r
+#define DC_TYPE_DIRECT 0 // normal device context\r
+#define DC_TYPE_MEMORY 1 // memory device context\r
+#define DC_TYPE_INFO 2 // information context\r
+\r
+/* DC OBJ Flags */\r
+#define DC_FLAG_DISPLAY 0x0001\r
+#define DC_FLAG_DIRECT 0x0002\r
+#define DC_FLAG_CANCELLED 0x0004\r
+#define DC_FLAG_PERMANENT 0x0008\r
+#define DC_FLAG_DIRTY_RAO 0x0010\r
+#define DC_FLAG_ACCUM_WMGR 0x0020\r
+#define DC_FLAG_ACCUM_APP 0x0040\r
+#define DC_FLAG_RESET 0x0080\r
+#define DC_FLAG_SYNCHRONIZEACCESS 0x0100\r
+#define DC_FLAG_EPSPRINTINGESCAPE 0x0200\r
+#define DC_FLAG_TEMPINFODC 0x0400\r
+#define DC_FLAG_FULLSCREEN 0x0800\r
+#define DC_FLAG_IN_CLONEPDEV 0x1000\r
+#define DC_FLAG_REDIRECTION 0x2000\r
+#define DC_FLAG_SHAREACCESS 0x4000\r
\r
/* DC_ATTR Dirty Flags */\r
#define DIRTY_FILL 0x00000001