Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This function checks the two specified regions to determine whether they are identical. The function considers two regions identical if they are equal in size and shape.

Syntax

BOOL EqualRgn(
  HRGN 
hSrcRgn1, 
  HRGN 
hSrcRgn2
); 

Parameters

hSrcRgn1

[in] Handle to a region.

hSrcRgn2

[in] Handle to a region.

Return Value

Nonzero indicates that the two regions are equal.

Zero indicates that the two regions are not equal.

ERROR indicates that at least one of the region handles is invalid.

Requirements

Header windows.h
Library coredll.lib
Windows Embedded CE Windows CE 1.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also