home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / swlist.zip / SWLIST.H < prev    next >
C/C++ Source or Header  |  1998-06-22  |  3KB  |  75 lines

  1. #ifndef SWLIST_H
  2. #define SWLIST_H
  3. /*
  4.  * Include file:
  5.  *
  6.  *        SWLIST.H  - swlist functions
  7.  *
  8.  * Description:
  9.  *
  10.  *        External definitions swlist functions
  11.  *
  12.  *        SwListQueryScrid     Get screen-session id for (sub)title
  13.  *        SwListQueryHandle    Get switchlist-handle for (sub)title in the
  14.  *                             specified screen-session
  15.  *        SwListActivate       Make session in switch-list active (focus)
  16.  *        SwListRemove         Remove indicated task from windowlist
  17.  *        SwListVisibility     Hide/show session in switch-list and desktop
  18.  *
  19.  * Remarks:
  20.  *
  21.  * Author:         J. van Wijk
  22.  *
  23.  * Date     By     Comment
  24.  * ======== ====== ============================================================
  25.  * 07-04-93 JvW    Initial version
  26.  * 22-06-98 JvW    Sample version, for demonstration purposes
  27.  *
  28.  */
  29.  
  30. /*===== constants ===========================================================*/
  31.  
  32. /*===== macro's =============================================================*/
  33.  
  34. /*===== type definitions ====================================================*/
  35.  
  36. /*===== function definitions ================================================*/
  37.  
  38.  
  39.     //- ALN query screen-session id for specified (sub) title
  40. ULONG SwListQueryScrid                          // RET   screen-session nr
  41. (
  42.     HAB                hab,                     // IN    PM anchor
  43.     char              *title                    // IN    (sub) title
  44. );
  45.  
  46.     //- query switch handle for (sub) title in screen-session
  47. HSWITCH SwListQueryHandle                       // RET   switch handle
  48. (
  49.     HAB                hab,                     // IN    PM anchor
  50.     char              *title,                   // IN    (sub) title
  51.     ULONG              scrid                    // IN    screen-session nr
  52. );
  53.  
  54.     //- activate indicated emulator
  55. BOOL SwListActivate                             // RET   success
  56. (
  57.     HSWITCH            hswi                     // IN    swlist handle
  58. );
  59.  
  60.     //- remove indicated task from windowlist
  61. BOOL SwListRemove                               // RET   success
  62. (
  63.     HSWITCH            hswi                     // IN    swlist handle
  64. );
  65.  
  66.     //- Make a task (in)vissible in windowlist and desktop
  67. BOOL SwListVisibility                           // RET   success
  68. (
  69.     HSWITCH            hswi,                    // IN    swlist handle
  70.     ULONG              swlv,                    // IN    swlist visibility
  71.     ULONG              winv                     // IN    window visibility
  72. );
  73.  
  74. #endif
  75.