The GetMetaRgn function retrieves the current metaregion for the specified device context.
int GetMetaRgn(
| HDC hdc, | // handle of device context | 
| HRGN hrgn | // handle of region | 
| ); | 
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
If the function succeeds, hrgn identifies a copy of the current metaregion. Subsequent changes to this copy will not affect the current metaregion.
The current clipping region of a device context is defined by the intersection of its clipping region and its metaregion.