84#define BMF_POOLALLOC 0x100
88#define SURFACE_AllocSurfaceWithHandle() ((PSURFACE) GDIOBJ_AllocObjWithHandle(GDI_OBJECT_TYPE_BITMAP, sizeof(SURFACE)))
91#define SURFACE_ShareLockSurface(hBMObj) \
92 ((PSURFACE) GDIOBJ_ShareLockObj ((HGDIOBJ) hBMObj, GDI_OBJECT_TYPE_BITMAP))
100#define SURFACE_UnlockSurface(pBMObj) \
101 GDIOBJ_vUnlockObject ((POBJ)pBMObj)
102#define SURFACE_ShareUnlockSurface(pBMObj) \
103 GDIOBJ_vDereferenceObject ((POBJ)pBMObj)
105#define GDIDEV(SurfObj) ((PDEVOBJ *)((SurfObj)->hdev))
106#define GDIDEVFUNCS(SurfObj) ((PDEVOBJ *)((SurfObj)->hdev))->DriverFunctions
109#define BitsPerFormat(Format) gajBitsPerFormat[Format]
111#define WIDTH_BYTES_ALIGN32(cx, bpp) ((((cx) * (bpp) + 31) & ~31) >> 3)
112#define WIDTH_BYTES_ALIGN16(cx, bpp) ((((cx) * (bpp) + 15) & ~15) >> 3)
144 *(
PVOID*)&psurf->ppal = ppal;
_Out_opt_ int _Out_opt_ int * cy
struct _EWNDOBJ * pWinObj
struct _PALETTE *const ppal
FORCEINLINE VOID SURFACE_vSetPalette(_Inout_ PSURFACE psurf, _In_ PPALETTE ppal)
FORCEINLINE VOID SURFACE_ShareLockByPointer(PSURFACE psurf)
@ ENG_CREATE_DEVICE_SURFACE
struct _SURFACE * PSURFACE
ULONG FASTCALL BitmapFormat(ULONG cBits, ULONG iCompression)
PSURFACE NTAPI SURFACE_AllocSurface(_In_ USHORT iType, _In_ ULONG cx, _In_ ULONG cy, _In_ ULONG iFormat, _In_ ULONG fjBitmap, _In_opt_ ULONG cjWidth, _In_opt_ ULONG cjBits, _In_opt_ PVOID pvBits)
VOID NTAPI SURFACE_vCleanup(PVOID ObjectBody)
VOID NTAPI GDIOBJ_vDereferenceObject(POBJ pobj)
VOID NTAPI GDIOBJ_vReferenceObjectByPointer(POBJ pobj)
_In_ SIZEL _In_ ULONG iFormat