PASSPORT Knowledge Base
HLLAPI

Date Published: January 11, 2011

Title

HLLAPI Function 104 - Window Status Not Working as Expected

Product

PASSPORT PC to Host, PASSPORT Web to Host

Emulation Types

TN3270, TN5250

Issue

We have an existing HLLAPI application, which was written for use with Attachmate EXTRA!, that we are attempting to migrate for use with PASSPORT. This application uses function 104 (Window Status) with the Query Extended Window Status parameter to determine the font height and width of the current screen. However, the returned values are the opposite of what is expected. In other words, the height is returned as the width and the width is returned as the height. How can this issue be resolved?

Solution

Although Attachmate uses bytes 5-6 to return the font height and bytes 7-8 to return the font width, Rocket Software follows the IBM standard for all HLLAPI functions. As such, bytes 5-6 will return the font width and bytes 7-8 will return the font height. In order for this function to work correctly with PASSPORT, the HLLAPI application must be modified appropriately.

More Information

Keywords

api, hllapi, 104, window, status, migrate, query, extended, height, width