HIWORD@

Platform

Win32, x64

Purpose

To get the top 16 bits of a 32 bit integer.

Syntax

INTEGER*2 FUNCTION HIWORD@(DWORD)
INTEGER DWORD

Description

Windows API functions sometimes return two values in a long integer with one value in the top 16 bits and one value in the bottom 16 bits. GetTextExtent does this for example, returning the height of the text in the top 16 bits and the width in the bottom 16 bits.

Notes

This is the Fortran ClearWin+ equivalent of the Microsoft C macro with the same name. See also LOWORD@, HIBYTE@, LOBYTE@

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited