# Function Reference

# _WinAPI_SetMapMode

Sets the mapping mode of the specified device context

#include <WinAPIGdi.au3>
_WinAPI_SetMapMode ( $hDC, $iMode )

## Parameters

$hDC | Handle to the device context.
$iMode | The new mapping mode. This parameter can be one of the following values. $MM_ANISOTROPIC $MM_HIENGLISH $MM_HIMETRIC $MM_ISOTROPIC $MM_LOENGLISH $MM_LOMETRIC $MM_TEXT $MM_TWIPS

## Return Value

Success: | The previous mapping mode.
Failure: | 0.

## See Also

Search SetMapMode in MSDN Library.