- Major Win32k Header Cleanup: Add ntgdi.h based on latest Platform SDK Public header...
[reactos.git] / reactos / subsys / win32k / include / region.h
1
2 #ifndef __WIN32K_REGION_H
3 #define __WIN32K_REGION_H
4
5 #include "gdiobj.h"
6
7 /* Internal region data. Can't use RGNDATA structure because buffer is allocated statically */
8 typedef struct _ROSRGNDATA {
9 RGNDATAHEADER rdh;
10 PRECT Buffer;
11 } ROSRGNDATA, *PROSRGNDATA, *LPROSRGNDATA;
12
13
14 #define RGNDATA_FreeRgn(hRgn) GDIOBJ_FreeObj((HGDIOBJ)hRgn, GDI_OBJECT_TYPE_REGION)
15 #define RGNDATA_LockRgn(hRgn) ((PROSRGNDATA)GDIOBJ_LockObj((HGDIOBJ)hRgn, GDI_OBJECT_TYPE_REGION))
16 #define RGNDATA_UnlockRgn(pRgn) GDIOBJ_UnlockObjByPtr(pRgn)
17 HRGN FASTCALL RGNDATA_AllocRgn(INT n);
18 BOOL INTERNAL_CALL RGNDATA_Cleanup(PVOID ObjectBody);
19
20 #endif
21