This function obtains a copy of the Window List data for a specific application.
#define INCL_WINSWITCHLIST /* Or use INCL_WIN, INCL_PM, */ #include <os2.h> HSWITCH hswitchSwitch; /* Handle to the Window List entry. */ PSWCNTRL pswctlSwitchData; /* Switch control data. */ ULONG rc; /* Return code. */ rc = WinQuerySwitchEntry(hswitchSwitch, pswctlSwitchData);