hdc (HDC) - input
paRegion (PRECT) - input
This is a pointer to an array of rectangle structures, which defines the region. Each rectangle is described by a RECTL structure:
xLeft
cRect (LONG) - input
If this is 0, an empty region is created.
pInstance (PVOID) - input
lFunction (ULONG) - input
rc (HRGN) - returns
On completion, the handling routine returns the region handle (hrgn), or RGN_ERROR if an error occurred.
Possible Errors Detected: When an error is detected, the handling routine must call WinSetErrorInfo to post the condition. Error codes for conditions that the handling routine is expected to check include:
PMERR_INSUFFICIENT_MEMORY PMERR_INV_COORDINATE
PMERR_INV_HRGN
PMERR_INV_LENGTH_OR_COUNT
PMERR_INV_RECT