If the selected object is not a region, the handle of the object being replaced indicates success.
If the selected object is a region, one of the following values indicates success.
| Value | Description |
| SIMPLEREGION | Region consists of a single rectangle. |
| COMPLEXREGION | Region consists of more than one rectangle. |
| NULLREGION | Region is empty. |
NULL indicates that an error occurred and the selected object is not a region. Otherwise, a GDI_ERROR value is returned.