This function obtains the title under which a specified application is started, or is added to the Window List.

#define INCL_WINSWITCHLIST /* Or use INCL_WIN, INCL_PM, */
#include <os2.h>

HAB      hab;         /*  Anchor-block handle. */
ULONG    ulSession;   /*  Session identity of application whose title is requested. */
PSZ      pszTitle;    /*  Window List title. */
ULONG    ulTitlelen;  /*  Maximum length of data returnable, in bytes. */
ULONG    rc;          /*  Return code. */

rc = WinQuerySessionTitle(hab, ulSession,
       pszTitle, ulTitlelen);


[Back] [Next]