Function Reference


_WinAPI_HiWord

Show description in

Returns the high word of a longword value

#include <WinAPIConv.au3>
_WinAPI_HiWord ( $iLong )

Parameters

$iLong Longword value

Return Value

Returns an High order word of the longword value

Related

_WinAPI_LoWord, _WinAPI_MakeLong

Example

#include <MsgBoxConstants.au3>
#include <WinAPIConv.au3>

Example()

Func Example()
        Local $iWord = 11 * 65535
        MsgBox($MB_SYSTEMMODAL, $iWord, "HiWord: " & _WinAPI_HiWord($iWord) & @CRLF & "LoWord: " & _WinAPI_LoWord($iWord))
EndFunc   ;==>Example