Creates a region from the path that is selected into the specified device context
#include <WinAPIGdi.au3>
_WinAPI_PathToRegion ( $hDC )
$hDC | Handle to a device context that contains a closed path. |
Success: | The handle to the region. |
Failure: | 0, call _WinAPI_GetLastError() to get extended error information. |
The device context identified by the $hDC parameter must contain a closed path.
After _WinAPI_PathToRegion() converts a path into a region, the system discards the closed path from the specified
device context.
Search PathToRegion in MSDN Library.