User`s guide

xciv Contents
Window Status—Function 104
This function allows the application to query or change a session’s window size, location, or visible
state, or to query a session’s window handle or font characteristics.
Prerequisite Functions
Connect Window Services (function 101).
WinHLLAPI(WINDOWSTATUS,lpbyString,lpwLength,
lpwReturnnCode)
Parameter Description
Data String See the following tables.
Data Length NA (defaults to 16 or 20, depending on the status request).
PS Position NA
Data String Description
Set window status - a 16-byte string with the following format:
Byte 1 Short name session ID of the desired host session, or space or null for
the current host session.
Byte 2 WHLL_WINDOWSTATUS_SET for set status.
Bytes 3-4 An integer containing the set values. The following are valid:
u WHLL_WINDOWSTATUS_SIZE. Change the window size (not
valid with minimize, maximize, restore, or move).
u WHLL_WINDOWSTATUS_MOVE. Change the window x or y
position (not valid with minimize, maximize, size, or restore).
u WHLL_WINDOWSTATUS_ZORDER. Specifies window z-
order placement.
u WHLL_WINDOWSTATUS_SHOW. Set the window to visible.
u WHLL_WINDOWSTATUS_HIDE. Set the window to invisible.
u WHLL_WINDOWSTATUS_ACTIVATE. Activate the window.
Use the _ZORDER placement if specified, otherwise set focus to the
window and place it in the foreground.
u WHLL_WINDOWSTATUS_DEACTIVATE. Deactivate the
window. Use the _ZORDER placement if specified, otherwise place
it in the background.
u WHLL_WINDOWSTATUS_MINIMIZE. Set the window to
minimized (not valid with maximize, restore, size, or move).
Function Call
Call Parameters