trm_get_hwnd()

Purpose

Obtains the handle of the top level window used by the DP4 terminal manager

Syntax

long trm_get_hwnd(void);
long dp4_trm_get_hwnd(void);

Description

The trm_get_hwnd() function returns the handle of the top level Window used by the DP4 terminal manager on Windows or similar GUI based operating systems. The value can safely be cast to type HWND.

Return values

Returns the window handle, or 0 if there is no local top level window because the program is being run using the DP4 terminal server. The return value is undefined if the console terminal manager is being used to run the program

See also

trm_control_subclass()