# Function Reference

# _WinAPI_MoveToEx

Updates the current position to the specified point

#include <WinAPIGdi.au3>
_WinAPI_MoveToEx ( $hDC, $iX, $iY )

## Parameters

$hDC | Handle to the device context.
$iX | The x-coordinate, in logical units, of the new position, in logical units.
$iY | The y-coordinate, in logical units, of the new position, in logical units.

## Return Value

Success: | $tagPOINT structure that contains the previous current position.
Failure: | Sets the @error flag to non-zero.

## See Also

Search MoveToEx in MSDN Library.