# Function Reference

# _WinAPI_PointsFromValue

Returns a value as a $tagPOINTS structure

#include <WinAPIConv.au3>
_WinAPI_PointsFromValue ( $iValue )

## Parameters

$iValue | integer value to be stored in the $tagPOINTS structure

## Return Value

Returns a $tagPOINTS structure

## Remarks

This function is used to convert data as lParam in a $TagPOINTS structure.

## Example

    #include <WinAPIConv.au3>

    Local $lParam = 0x0000FFFF ;-e.g. returned by WM_ messages
    Local $tPoints = _WinAPI_PointsFromValue($lParam)

    ConsoleWrite(StringFormat("MakePoints: %d, %d\r\n", $tPoints.X, $tPoints.Y))
    ConsoleWrite(StringFormat("Lo/Hi Word: %d, %d\r\n", _WinAPI_LoWord($lParam), _WinAPI_HiWord($lParam)))