BOOL WNDOBJ_bEnum(
WNDOBJ *pwo, | |
ULONG cj, | |
ULONG *pul | |
); |
The WNDOBJ_bEnum callback function gets a batch of rectangles from the visible region of a window.
typedef struct _ENUMRECTS{ ULONG c; RECTL arcl[] } ENUMRECTS;
The return value is TRUE if there is more data to be enumerated and the driver should repeat the call. It is FALSE if the enumeration is complete.
The order of enumeration is determined by the call to WNDOBJ_cEnumStart.
do { bMore = WNDOBJ_bEnum(pwo, sizeof(buffer), &buffer.c); for (i = 0; i < buffer.c; i++) { // Process the data } } while (bMore);
WNDOBJ_bEnum should be called only by the callback function provided to GDI by the EngCreateWnd function, or by the DDI functions that are given a WNDOBJ.