## Presentation Device Driver Reference for OS/2

[prev][next][parent][TOC]

### GreCreateRectRegion Return Value - rc

rc (HRGN) - returns Return codes.

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

Refer to the "Error Explanations" section in the Presentation Manager Programming Reference for further explanation.