home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v1.zip / DDKX86 / IBMH / BSESUB.H < prev    next >
C/C++ Source or Header  |  1995-04-14  |  40KB  |  1,114 lines

  1. /*DDK*************************************************************************/
  2. /*                                                                           */
  3. /* COPYRIGHT    Copyright (C) 1995 IBM Corporation                           */
  4. /*                                                                           */
  5. /*    The following IBM OS/2 WARP source code is provided to you solely for  */
  6. /*    the purpose of assisting you in your development of OS/2 WARP device   */
  7. /*    drivers. You may use this code in accordance with the IBM License      */
  8. /*    Agreement provided in the IBM Device Driver Source Kit for OS/2. This  */
  9. /*    Copyright statement may not be removed.                                */
  10. /*                                                                           */
  11. /*****************************************************************************/
  12. /****************************** Module Header ******************************\
  13. *
  14. * Module Name: BSESUB.H
  15. *
  16. * OS/2 Base include file.
  17. *
  18. *
  19. * ===========================================================================
  20. *
  21. * The folowing symbols are used in this file for conditional sections.
  22. *
  23. * Subcomponents marked with "+" are partially included by default:
  24. *
  25. *   #define:                To include:
  26. *
  27. *   INCL_KBD                KBD
  28. *   INCL_VIO                VIO
  29. *   INCL_MOU                MOU
  30. *
  31. * ===========================================================================
  32. *
  33. * Comments at the end of each typedef line give the name tags used in
  34. * the assembler include version of this file.
  35. *
  36. * The assembler include version of this file excludes lines between NOINC
  37. * and INC comments.
  38. *
  39. \***************************************************************************/
  40.  
  41. /* NOINC */
  42. #ifdef __IBMC__
  43.    #pragma checkout( suspend )
  44.    #ifndef __CHKHDR__
  45.       #pragma checkout( suspend )
  46.    #endif
  47.    #pragma checkout( resume )
  48. #endif
  49. /* INC */
  50.  
  51. #ifndef __BSESUB__
  52.  
  53. /* NOINC */
  54. #define __BSESUB__
  55. /* INC */
  56.  
  57. #ifdef INCL_SUB
  58.    #define INCL_KBD
  59.    #define INCL_VIO
  60.    #define INCL_MOU
  61. #endif /* INCL_SUB */
  62.  
  63. #ifdef INCL_KBD
  64.  
  65.    #define Kbd16CharIn        KBD16CHARIN
  66.    #define Kbd16Close         KBD16CLOSE
  67.    #define Kbd16DeRegister    KBD16DEREGISTER
  68.    #define Kbd16FlushBuffer   KBD16FLUSHBUFFER
  69.    #define Kbd16FreeFocus     KBD16FREEFOCUS
  70.    #define Kbd16GetCp         KBD16GETCP
  71.    #define Kbd16GetFocus      KBD16GETFOCUS
  72.    #define Kbd16GetHWID       KBD16GETHWID
  73.    #define Kbd16GetStatus     KBD16GETSTATUS
  74.    #define Kbd16Open          KBD16OPEN
  75.    #define Kbd16Peek          KBD16PEEK
  76.    #define Kbd16Register      KBD16REGISTER
  77.    #define Kbd16SetCp         KBD16SETCP
  78.    #define Kbd16SetCustXt     KBD16SETCUSTXT
  79.    #define Kbd16SetFgnd       KBD16SETFGND
  80.    #define Kbd16SetHWID       KBD16SETHWID
  81.    #define Kbd16SetStatus     KBD16SETSTATUS
  82.    #define Kbd16StringIn      KBD16STRINGIN
  83.    #define Kbd16Synch         KBD16SYNCH
  84.    #define Kbd16Xlate         KBD16XLATE
  85.  
  86.    #define KbdCharIn          KBD16CHARIN
  87.    #define KbdClose           KBD16CLOSE
  88.    #define KbdDeRegister      KBD16DEREGISTER
  89.    #define KbdFlushBuffer     KBD16FLUSHBUFFER
  90.    #define KbdFreeFocus       KBD16FREEFOCUS
  91.    #define KbdGetCp           KBD16GETCP
  92.    #define KbdGetFocus        KBD16GETFOCUS
  93.    #define KbdGetHWID         KBD16GETHWID
  94.    #define KbdGetStatus       KBD16GETSTATUS
  95.    #define KbdOpen            KBD16OPEN
  96.    #define KbdPeek            KBD16PEEK
  97.    #define KbdRegister        KBD16REGISTER
  98.    #define KbdSetCp           KBD16SETCP
  99.    #define KbdSetCustXt       KBD16SETCUSTXT
  100.    #define KbdSetFgnd         KBD16SETFGND
  101.    #define KbdSetHWID         KBD16SETHWID
  102.    #define KbdSetStatus       KBD16SETSTATUS
  103.    #define KbdStringIn        KBD16STRINGIN
  104.    #define KbdSynch           KBD16SYNCH
  105.    #define KbdXlate           KBD16XLATE
  106.  
  107.    typedef unsigned short  HKBD;
  108.    typedef HKBD        *   PHKBD;
  109.  
  110.    APIRET16 APIENTRY16 KbdRegister (PSZ pszModName,
  111.                                     PSZ pszEntryPt,
  112.                                     ULONG FunMask);
  113.  
  114.    #define KR_KBDCHARIN               0x00000001L
  115.    #define KR_KBDPEEK                 0x00000002L
  116.    #define KR_KBDFLUSHBUFFER          0x00000004L
  117.    #define KR_KBDGETSTATUS            0x00000008L
  118.    #define KR_KBDSETSTATUS            0x00000010L
  119.    #define KR_KBDSTRINGIN             0x00000020L
  120.    #define KR_KBDOPEN                 0x00000040L
  121.    #define KR_KBDCLOSE                0x00000080L
  122.    #define KR_KBDGETFOCUS             0x00000100L
  123.    #define KR_KBDFREEFOCUS            0x00000200L
  124.    #define KR_KBDGETCP                0x00000400L
  125.    #define KR_KBDSETCP                0x00000800L
  126.    #define KR_KBDXLATE                0x00001000L
  127.    #define KR_KBDSETCUSTXT            0x00002000L
  128.  
  129.    #define IO_WAIT                    0
  130.    #define IO_NOWAIT                  1
  131.  
  132.    APIRET16 APIENTRY16 KbdDeRegister (void);
  133.  
  134.    /* KBDKEYINFO structure, for KbdCharIn and KbdPeek */
  135.    #pragma pack(2)
  136.  
  137.  
  138.    typedef  struct _KBDKEYINFO      /* kbci */
  139.    {
  140.       UCHAR    chChar;
  141.       UCHAR    chScan;
  142.       UCHAR    fbStatus;
  143.       UCHAR    bNlsShift;
  144.       USHORT   fsState;
  145.       ULONG    time;
  146.    }KBDKEYINFO;
  147.    typedef KBDKEYINFO *PKBDKEYINFO;
  148.  
  149.    APIRET16 APIENTRY16  KbdCharIn(PKBDKEYINFO pkbci,
  150.                                   USHORT fWait,
  151.                                   HKBD hkbd);
  152.  
  153.    APIRET16 APIENTRY16  KbdPeek (PKBDKEYINFO pkbci,
  154.                                  HKBD hkbd);
  155.  
  156.    /* structure for KbdStringIn() */
  157.  
  158.    typedef struct _STRINGINBUF     /* kbsi */
  159.    {
  160.       USHORT cb;
  161.       USHORT cchIn;
  162.    } STRINGINBUF;
  163.    typedef STRINGINBUF  *PSTRINGINBUF;
  164.  
  165.    APIRET16 APIENTRY16  KbdStringIn (PCH pch,
  166.                                      PSTRINGINBUF pchIn,
  167.                                      USHORT fsWait,
  168.                                      HKBD hkbd);
  169.  
  170.    APIRET16 APIENTRY16  KbdFlushBuffer (HKBD hkbd);
  171.  
  172.    /* KBDINFO.fsMask */
  173.  
  174.    #define KEYBOARD_ECHO_ON                0x0001
  175.    #define KEYBOARD_ECHO_OFF               0x0002
  176.    #define KEYBOARD_BINARY_MODE            0x0004
  177.    #define KEYBOARD_ASCII_MODE             0x0008
  178.    #define KEYBOARD_MODIFY_STATE           0x0010
  179.    #define KEYBOARD_MODIFY_INTERIM         0x0020
  180.    #define KEYBOARD_MODIFY_TURNAROUND      0x0040
  181.    #define KEYBOARD_2B_TURNAROUND          0x0080
  182.    #define KEYBOARD_SHIFT_REPORT           0x0100
  183.  
  184.    #ifndef INCL_DOSDEVIOCTL  /* following constants defined in bsedev.h */
  185.       /* KBDINFO.fsState/KBDKEYINFO.fsState/KBDTRANS.fsState */
  186.       #define KBDSTF_RIGHTSHIFT               0x0001
  187.       #define KBDSTF_LEFTSHIFT                0x0002
  188.       #define KBDSTF_CONTROL                  0x0004
  189.       #define KBDSTF_ALT                      0x0008
  190.       #define KBDSTF_SCROLLLOCK_ON            0x0010
  191.       #define KBDSTF_NUMLOCK_ON               0x0020
  192.       #define KBDSTF_CAPSLOCK_ON              0x0040
  193.       #define KBDSTF_INSERT_ON                0x0080
  194.       #define KBDSTF_LEFTCONTROL              0x0100
  195.       #define KBDSTF_LEFTALT                  0x0200
  196.       #define KBDSTF_RIGHTCONTROL             0x0400
  197.       #define KBDSTF_RIGHTALT                 0x0800
  198.       #define KBDSTF_SCROLLLOCK               0x1000
  199.       #define KBDSTF_NUMLOCK                  0x2000
  200.       #define KBDSTF_CAPSLOCK                 0x4000
  201.       #define KBDSTF_SYSREQ                   0x8000
  202.    #endif  /* INCL_DOSDEVIOCTL */
  203.  
  204.    /* KBDINFO structure, for KbdSet/GetStatus */
  205.    typedef struct _KBDINFO         /* kbst */
  206.    {
  207.       USHORT cb;
  208.       USHORT fsMask;
  209.       USHORT chTurnAround;
  210.       USHORT fsInterim;
  211.       USHORT fsState;
  212.    }KBDINFO;
  213.    typedef KBDINFO *PKBDINFO;
  214.  
  215.  
  216.    APIRET16 APIENTRY16  KbdSetStatus (PKBDINFO pkbdinfo,
  217.                                       HKBD hkbd);
  218.  
  219.    APIRET16 APIENTRY16  KbdGetStatus (PKBDINFO pkbdinfo,
  220.                                       HKBD hdbd);
  221.  
  222.    APIRET16 APIENTRY16  KbdSetCp (USHORT usReserved,
  223.                                   USHORT pidCP,
  224.                                   HKBD hdbd);
  225.  
  226.    APIRET16 APIENTRY16  KbdGetCp (ULONG ulReserved,
  227.                                   PUSHORT pidCP,
  228.                                   HKBD hkbd);
  229.  
  230.    APIRET16 APIENTRY16  KbdOpen (PHKBD phkbd);
  231.  
  232.    APIRET16 APIENTRY16  KbdClose (HKBD hkbd);
  233.  
  234.    APIRET16 APIENTRY16  KbdGetFocus (USHORT fWait,
  235.                                      HKBD hkbd);
  236.  
  237.    APIRET16 APIENTRY16  KbdFreeFocus (HKBD hkbd);
  238.  
  239.    APIRET16 APIENTRY16  KbdSynch (USHORT fsWait);
  240.  
  241.    APIRET16 APIENTRY16  KbdSetFgnd(VOID);
  242.  
  243.    /* structure for KbdGetHWID() */
  244.    typedef struct _KBDHWID         /* kbhw */
  245.    {
  246.       USHORT cb;
  247.       USHORT idKbd;
  248.       USHORT usReserved1;
  249.       USHORT usReserved2;
  250.    } KBDHWID;
  251.    typedef KBDHWID  *PKBDHWID;
  252.  
  253.    APIRET16 APIENTRY16  KbdGetHWID (PKBDHWID pkbdhwid,
  254.                                     HKBD hkbd);
  255.  
  256.    APIRET16 APIENTRY16  KbdSetHWID (PKBDHWID pkbdhwid,
  257.                                     HKBD hkbd);
  258.  
  259.  
  260.    /* KBDTRANS.fbStatus */
  261.  
  262.    #define KBDTRF_SHIFT_KEY_IN             0x01
  263.    #define KBDTRF_CONVERSION_REQUEST       0x20
  264.    #define KBDTRF_FINAL_CHAR_IN            0x40
  265.    #define KBDTRF_INTERIM_CHAR_IN          0x80
  266.  
  267.    /* structure for KbdXlate() */
  268.    #pragma pack(2)
  269.  
  270.    typedef  struct _KBDTRANS        /* kbxl */
  271.    {
  272.       UCHAR      chChar;
  273.       UCHAR      chScan;
  274.       UCHAR      fbStatus;
  275.       UCHAR      bNlsShift;
  276.       USHORT     fsState;
  277.       ULONG      time;
  278.       USHORT     fsDD;
  279.       USHORT     fsXlate;
  280.       USHORT     fsShift;
  281.       USHORT     sZero;
  282.    } KBDTRANS;
  283.    typedef KBDTRANS *PKBDTRANS;
  284.  
  285.    APIRET16 APIENTRY16  KbdXlate (PKBDTRANS pkbdtrans,
  286.                                   HKBD hkbd);
  287.  
  288.    APIRET16 APIENTRY16  KbdSetCustXt (PUSHORT usCodePage,
  289.                                       HKBD hkbd);
  290.  
  291. #endif /* INCL_KBD */
  292.  
  293. #ifdef INCL_VIO
  294.  
  295.    #define VioCheckCharType        VIO16CHECKCHARTYPE
  296.    #define VioDeRegister           VIO16DEREGISTER
  297.    #define VioEndPopUp             VIO16ENDPOPUP
  298.    #define VioGetAnsi              VIO16GETANSI
  299.    #define VioGetBuf               VIO16GETBUF
  300.    #define VioGetConfig            VIO16GETCONFIG
  301.    #define VioGetCp                VIO16GETCP
  302.    #define VioGetCurPos            VIO16GETCURPOS
  303.    #define VioGetCurType           VIO16GETCURTYPE
  304.    #define VioGetFont              VIO16GETFONT
  305.    #define VioGetMode              VIO16GETMODE
  306.    #define VioGetPhysBuf           VIO16GETPHYSBUF
  307.    #define VioGetState             VIO16GETSTATE
  308.    #define VioModeUndo             VIO16MODEUNDO
  309.    #define VioModeWait             VIO16MODEWAIT
  310.    #define VioPopUp                VIO16POPUP
  311.    #define VioPrtSc                VIO16PRTSC
  312.    #define VioPrtScToggle          VIO16PRTSCTOGGLE
  313.    #define VioReadCellStr          VIO16READCELLSTR
  314.    #define VioReadCharStr          VIO16READCHARSTR
  315.    #define VioRedrawSize           VIO16REDRAWSIZE
  316.    #define VioRegister             VIO16REGISTER
  317.    #define VioSavRedrawUndo        VIO16SAVREDRAWUNDO
  318.    #define VioSavRedrawWait        VIO16SAVREDRAWWAIT
  319.    #define VioScrLock              VIO16SCRLOCK
  320.    #define VioScrUnLock            VIO16SCRUNLOCK
  321.    #define VioScrollDn             VIO16SCROLLDN
  322.    #define VioScrollLf             VIO16SCROLLLF
  323.    #define VioScrollRt             VIO16SCROLLRT
  324.    #define VioScrollUp             VIO16SCROLLUP
  325.    #define VioSetAnsi              VIO16SETANSI
  326.    #define VioSetCp                VIO16SETCP
  327.    #define VioSetCurPos            VIO16SETCURPOS
  328.    #define VioSetCurType           VIO16SETCURTYPE
  329.    #define VioSetFont              VIO16SETFONT
  330.    #define VioSetMode              VIO16SETMODE
  331.    #define VioSetState             VIO16SETSTATE
  332.    #define VioShowBuf              VIO16SHOWBUF
  333.    #define VioWrtCellStr           VIO16WRTCELLSTR
  334.    #define VioWrtCharStr           VIO16WRTCHARSTR
  335.    #define VioWrtCharStrAtt        VIO16WRTCHARSTRATT
  336.    #define VioWrtNAttr             VIO16WRTNATTR
  337.    #define VioWrtNCell             VIO16WRTNCELL
  338.    #define VioWrtNChar             VIO16WRTNCHAR
  339.    #define VioWrtTTY               VIO16WRTTTY
  340.  
  341.    #define Vio16CheckCharType      VIO16CHECKCHARTYPE
  342.    #define Vio16DeRegister         VIO16DEREGISTER
  343.    #define Vio16EndPopUp           VIO16ENDPOPUP
  344.    #define Vio16GetAnsi            VIO16GETANSI
  345.    #define Vio16GetBuf             VIO16GETBUF
  346.    #define Vio16GetConfig          VIO16GETCONFIG
  347.    #define Vio16GetCp              VIO16GETCP
  348.    #define Vio16GetCurPos          VIO16GETCURPOS
  349.    #define Vio16GetCurType         VIO16GETCURTYPE
  350.    #define Vio16GetFont            VIO16GETFONT
  351.    #define Vio16GetMode            VIO16GETMODE
  352.    #define Vio16GetPhysBuf         VIO16GETPHYSBUF
  353.    #define Vio16GetState           VIO16GETSTATE
  354.    #define Vio16ModeUndo           VIO16MODEUNDO
  355.    #define Vio16ModeWait           VIO16MODEWAIT
  356.    #define Vio16PopUp              VIO16POPUP
  357.    #define Vio16PrtSc              VIO16PRTSC
  358.    #define Vio16PrtScToggle        VIO16PRTSCTOGGLE
  359.    #define Vio16ReadCellStr        VIO16READCELLSTR
  360.    #define Vio16ReadCharStr        VIO16READCHARSTR
  361.    #define Vio16RedrawSize         VIO16REDRAWSIZE
  362.    #define Vio16Register           VIO16REGISTER
  363.    #define Vio16SavRedrawUndo      VIO16SAVREDRAWUNDO
  364.    #define Vio16SavRedrawWait      VIO16SAVREDRAWWAIT
  365.    #define Vio16ScrLock            VIO16SCRLOCK
  366.    #define Vio16ScrUnLock          VIO16SCRUNLOCK
  367.    #define Vio16ScrollDn           VIO16SCROLLDN
  368.    #define Vio16ScrollLf           VIO16SCROLLLF
  369.    #define Vio16ScrollRt           VIO16SCROLLRT
  370.    #define Vio16ScrollUp           VIO16SCROLLUP
  371.    #define Vio16SetAnsi            VIO16SETANSI
  372.    #define Vio16SetCp              VIO16SETCP
  373.    #define Vio16SetCurPos          VIO16SETCURPOS
  374.    #define Vio16SetCurType         VIO16SETCURTYPE
  375.    #define Vio16SetFont            VIO16SETFONT
  376.    #define Vio16SetMode            VIO16SETMODE
  377.    #define Vio16SetState           VIO16SETSTATE
  378.    #define Vio16ShowBuf            VIO16SHOWBUF
  379.    #define Vio16WrtCellStr         VIO16WRTCELLSTR
  380.    #define Vio16WrtCharStr         VIO16WRTCHARSTR
  381.    #define Vio16WrtCharStrAtt      VIO16WRTCHARSTRATT
  382.    #define Vio16WrtNAttr           VIO16WRTNATTR
  383.    #define Vio16WrtNCell           VIO16WRTNCELL
  384.    #define Vio16WrtNChar           VIO16WRTNCHAR
  385.    #define Vio16WrtTTY             VIO16WRTTTY
  386.  
  387.  
  388.    typedef unsigned short  HVIO;
  389.    typedef HVIO        *   PHVIO;
  390.  
  391.    APIRET16 APIENTRY16  VioRegister (PSZ pszModName,
  392.                                      PSZ pszEntryName,
  393.                                      ULONG flFun1,
  394.                                      ULONG flFun2);
  395.  
  396.    APIRET16 APIENTRY16  VioGlobalReg(PSZ pszModName,
  397.                                      PSZ pszEntryName,
  398.                                      ULONG flFun1,
  399.                                      ULONG flFun2,
  400.                                      USHORT usReturn);
  401.  
  402.    /* first parameter registration constants   */
  403.    #define VR_VIOGETCURPOS            0x00000001L
  404.    #define VR_VIOGETCURTYPE           0x00000002L
  405.    #define VR_VIOGETMODE              0x00000004L
  406.    #define VR_VIOGETBUF               0x00000008L
  407.    #define VR_VIOGETPHYSBUF           0x00000010L
  408.    #define VR_VIOSETCURPOS            0x00000020L
  409.    #define VR_VIOSETCURTYPE           0x00000040L
  410.    #define VR_VIOSETMODE              0x00000080L
  411.    #define VR_VIOSHOWBUF              0x00000100L
  412.    #define VR_VIOREADCHARSTR          0x00000200L
  413.    #define VR_VIOREADCELLSTR          0x00000400L
  414.    #define VR_VIOWRTNCHAR             0x00000800L
  415.    #define VR_VIOWRTNATTR             0x00001000L
  416.    #define VR_VIOWRTNCELL             0x00002000L
  417.    #define VR_VIOWRTTTY               0x00004000L
  418.    #define VR_VIOWRTCHARSTR           0x00008000L
  419.  
  420.    #define VR_VIOWRTCHARSTRATT        0x00010000L
  421.    #define VR_VIOWRTCELLSTR           0x00020000L
  422.    #define VR_VIOSCROLLUP             0x00040000L
  423.    #define VR_VIOSCROLLDN             0x00080000L
  424.    #define VR_VIOSCROLLLF             0x00100000L
  425.    #define VR_VIOSCROLLRT             0x00200000L
  426.    #define VR_VIOSETANSI              0x00400000L
  427.    #define VR_VIOGETANSI              0x00800000L
  428.    #define VR_VIOPRTSC                0x01000000L
  429.    #define VR_VIOSCRLOCK              0x02000000L
  430.    #define VR_VIOSCRUNLOCK            0x04000000L
  431.    #define VR_VIOSAVREDRAWWAIT        0x08000000L
  432.    #define VR_VIOSAVREDRAWUNDO        0x10000000L
  433.    #define VR_VIOPOPUP                0x20000000L
  434.    #define VR_VIOENDPOPUP             0x40000000L
  435.    #define VR_VIOPRTSCTOGGLE          0x80000000L
  436.  
  437.    /* second parameter registration constants  */
  438.    #define VR_VIOMODEWAIT             0x00000001L
  439.    #define VR_VIOMODEUNDO             0x00000002L
  440.    #define VR_VIOGETFONT              0x00000004L
  441.    #define VR_VIOGETCONFIG            0x00000008L
  442.    #define VR_VIOSETCP                0x00000010L
  443.    #define VR_VIOGETCP                0x00000020L
  444.    #define VR_VIOSETFONT              0x00000040L
  445.    #define VR_VIOGETSTATE             0x00000080L
  446.    #define VR_VIOSETSTATE             0x00000100L
  447.  
  448.    APIRET16 APIENTRY16  VioDeRegister (void);
  449.  
  450.    APIRET16 APIENTRY16  VioGetBuf (PULONG pLVB,
  451.                                    PUSHORT pcbLVB,
  452.                                    HVIO hvio);
  453.  
  454.    APIRET16 APIENTRY16  VioGetCurPos (PUSHORT pusRow,
  455.                                       PUSHORT pusColumn,
  456.                                       HVIO hvio);
  457.  
  458.    APIRET16 APIENTRY16  VioSetCurPos (USHORT usRow,
  459.                                       USHORT usColumn,
  460.                                       HVIO hvio);
  461.  
  462.    /* structure for VioSet/GetCurType() */
  463.    typedef struct _VIOCURSORINFO   /* vioci */
  464.    {
  465.       USHORT   yStart;
  466.       USHORT   cEnd;
  467.       USHORT   cx;
  468.       USHORT   attr;
  469.    } VIOCURSORINFO;
  470.  
  471.    typedef VIOCURSORINFO *PVIOCURSORINFO;
  472.  
  473.    APIRET16 APIENTRY16  VioGetCurType (PVIOCURSORINFO pvioCursorInfo,
  474.                                        HVIO hvio);
  475.  
  476.    APIRET16 APIENTRY16  VioSetCurType (PVIOCURSORINFO pvioCursorInfo,
  477.                                        HVIO hvio);
  478.  
  479.  
  480.    /* VIOMODEINFO.color constants */
  481.  
  482.    #define COLORS_2        0x0001
  483.    #define COLORS_4        0x0002
  484.    #define COLORS_16       0x0004
  485.  
  486.    /* structure for VioSet/GetMode() */
  487.    #pragma pack(1)
  488.  
  489.  
  490.    typedef  struct _VIOMODEINFO     /* viomi */
  491.    {
  492.       USHORT cb;
  493.       UCHAR  fbType;
  494.       UCHAR  color;
  495.       USHORT col;
  496.       USHORT row;
  497.       USHORT hres;
  498.       USHORT vres;
  499.       UCHAR  fmt_ID;
  500.       UCHAR  attrib;
  501.       ULONG  buf_addr;
  502.       ULONG  buf_length;
  503.       ULONG  full_length;
  504.       ULONG  partial_length;
  505.       PCH    ext_data_addr;
  506.    } VIOMODEINFO;
  507.    typedef VIOMODEINFO *PVIOMODEINFO;
  508.  
  509.    #define VGMT_OTHER                 0x01
  510.    #define VGMT_GRAPHICS              0x02
  511.    #define VGMT_DISABLEBURST          0x04
  512.  
  513.    APIRET16 APIENTRY16  VioGetMode (PVIOMODEINFO pvioModeInfo,
  514.                                     HVIO hvio);
  515.  
  516.    APIRET16 APIENTRY16  VioSetMode (PVIOMODEINFO pvioModeInfo,
  517.                                     HVIO hvio);
  518.  
  519.    /* structure for VioGetPhysBuf() */
  520.    typedef struct _VIOPHYSBUF      /* viopb */
  521.    {
  522.       PBYTE    pBuf;
  523.       ULONG    cb;
  524.       SEL      asel[1];
  525.    } VIOPHYSBUF;
  526.  
  527.    typedef VIOPHYSBUF  *PVIOPHYSBUF;
  528.  
  529.    APIRET16 APIENTRY16  VioGetPhysBuf (PVIOPHYSBUF pvioPhysBuf,
  530.                                        USHORT usReserved);
  531.  
  532.    APIRET16 APIENTRY16  VioReadCellStr (PCH pchCellStr,
  533.                                         PUSHORT pcb,
  534.                                         USHORT usRow,
  535.                                         USHORT usColumn,
  536.                                         HVIO hvio);
  537.  
  538.    APIRET16 APIENTRY16  VioReadCharStr (PCH pchCellStr,
  539.                                         PUSHORT pcb,
  540.                                         USHORT usRow,
  541.                                         USHORT usColumn,
  542.                                         HVIO hvio);
  543.  
  544.    APIRET16 APIENTRY16  VioWrtCellStr (PCH pchCellStr,
  545.                                        USHORT cb,
  546.                                        USHORT usRow,
  547.                                        USHORT usColumn,
  548.                                        HVIO hvio);
  549.  
  550.    APIRET16  APIENTRY16 VioWrtCharStr (PCH pchStr,
  551.                                        USHORT cb,
  552.                                        USHORT usRow,
  553.                                        USHORT usColumn,
  554.                                        HVIO hvio);
  555.  
  556.    APIRET16 APIENTRY16  VioScrollDn (USHORT usTopRow,
  557.                                      USHORT usLeftCol,
  558.                                      USHORT usBotRow,
  559.                                      USHORT usRightCol,
  560.                                      USHORT cbLines,
  561.                                      PBYTE pCell,
  562.                                      HVIO hvio);
  563.  
  564.    APIRET16 APIENTRY16  VioScrollUp (USHORT usTopRow,
  565.                                      USHORT usLeftCol,
  566.                                      USHORT usBotRow,
  567.                                      USHORT usRightCol,
  568.                                      USHORT cbLines,
  569.                                      PBYTE pCell,
  570.                                      HVIO hvio);
  571.  
  572.    APIRET16 APIENTRY16  VioScrollLf (USHORT usTopRow,
  573.                                      USHORT usLeftCol,
  574.                                      USHORT usBotRow,
  575.                                      USHORT usRightCol,
  576.                                      USHORT cbCol,
  577.                                      PBYTE pCell,
  578.                                      HVIO hvio);
  579.  
  580.    APIRET16 APIENTRY16  VioScrollRt (USHORT usTopRow,
  581.                                      USHORT usLeftCol,
  582.                                      USHORT usBotRow,
  583.                                      USHORT usRightCol,
  584.                                      USHORT cbCol,
  585.                                      PBYTE pCell,
  586.                                      HVIO hvio);
  587.  
  588.    APIRET16 APIENTRY16  VioWrtNAttr (PBYTE pAttr,
  589.                                      USHORT cb,
  590.                                      USHORT usRow,
  591.                                      USHORT usColumn,
  592.                                      HVIO hvio);
  593.  
  594.    APIRET16 APIENTRY16  VioWrtNCell (PBYTE pCell,
  595.                                      USHORT cb,
  596.                                      USHORT usRow,
  597.                                      USHORT usColumn,
  598.                                      HVIO hvio);
  599.  
  600.    APIRET16 APIENTRY16  VioWrtNChar (PCH pchChar,
  601.                                      USHORT cb,
  602.                                      USHORT usRow,
  603.                                      USHORT usColumn,
  604.                                      HVIO hvio);
  605.  
  606.    APIRET16 APIENTRY16  VioWrtTTY (PCH pch,
  607.                                    USHORT cb,
  608.                                    HVIO hvio);
  609.  
  610.    APIRET16 APIENTRY16  VioWrtCharStrAtt (PCH pch,
  611.                                           USHORT cb,
  612.                                           USHORT usRow,
  613.                                           USHORT usColumn,
  614.                                           PBYTE pAttr,
  615.                                           HVIO hvio);
  616.  
  617.    #define VCC_SBCSCHAR               0
  618.    #define VCC_DBCSFULLCHAR           1
  619.    #define VCC_DBCS1STHALF            2
  620.    #define VCC_DBCS2NDHALF            3
  621.  
  622.    APIRET16 APIENTRY16  VioCheckCharType (PUSHORT pType,
  623.                                           USHORT usRow,
  624.                                           USHORT usColumn,
  625.                                           HVIO hvio);
  626.  
  627.    APIRET16 APIENTRY16  VioShowBuf (USHORT offLVB,
  628.                                     USHORT cb,
  629.                                     HVIO hvio);
  630.  
  631.  
  632.    #define ANSI_ON                    1
  633.    #define ANSI_OFF                   0
  634.  
  635.    APIRET16 APIENTRY16  VioSetAnsi (USHORT fAnsi,
  636.                                     HVIO hvio);
  637.  
  638.    APIRET16 APIENTRY16  VioGetAnsi (PUSHORT pfAnsi,
  639.                                     HVIO hvio);
  640.  
  641.    APIRET16 APIENTRY16  VioPrtSc (HVIO hvio);
  642.  
  643.    APIRET16 APIENTRY16  VioPrtScToggle (HVIO hvio);
  644.  
  645.    #define VSRWI_SAVEANDREDRAW        0
  646.    #define VSRWI_REDRAW               1
  647.  
  648.    #define VSRWN_SAVE                 0
  649.    #define VSRWN_REDRAW               1
  650.  
  651.    #define UNDOI_GETOWNER             0
  652.    #define UNDOI_RELEASEOWNER         1
  653.  
  654.    #define UNDOK_ERRORCODE            0
  655.    #define UNDOK_TERMINATE            1
  656.  
  657.    APIRET16 APIENTRY16  VioRedrawSize (PULONG pcbRedraw);
  658.  
  659.    APIRET16 APIENTRY16  VioSavRedrawWait (USHORT usRedrawInd,
  660.                                           PUSHORT pNotifyType,
  661.                                           USHORT usReserved);
  662.  
  663.    APIRET16 APIENTRY16  VioSavRedrawUndo (USHORT usOwnerInd,
  664.                                           USHORT usKillInd,
  665.                                           USHORT usReserved);
  666.  
  667.    #define VMWR_POPUP                 0
  668.    #define VMWN_POPUP                 0
  669.  
  670.    APIRET16 APIENTRY16  VioModeWait (USHORT usReqType,
  671.                                      PUSHORT pNotifyType,
  672.                                      USHORT usReserved);
  673.  
  674.    APIRET16 APIENTRY16  VioModeUndo (USHORT usOwnerInd,
  675.                                      USHORT usKillInd,
  676.                                      USHORT usReserved);
  677.  
  678.    #define LOCKIO_NOWAIT              0
  679.    #define LOCKIO_WAIT                1
  680.  
  681.    #define LOCK_SUCCESS               0
  682.    #define LOCK_FAIL                  1
  683.  
  684.    APIRET16 APIENTRY16  VioScrLock (USHORT fWait,
  685.                                     PUCHAR pfNotLocked,
  686.                                     HVIO hvio);
  687.  
  688.    APIRET16 APIENTRY16  VioScrUnLock (HVIO hvio);
  689.  
  690.    #define VP_NOWAIT                  0x0000
  691.    #define VP_WAIT                    0x0001
  692.    #define VP_OPAQUE                  0x0000
  693.    #define VP_TRANSPARENT             0x0002
  694.  
  695.    APIRET16 APIENTRY16  VioPopUp (PUSHORT pfWait,
  696.                                   HVIO hvio);
  697.  
  698.    APIRET16 APIENTRY16  VioEndPopUp (HVIO hvio);
  699.  
  700.  
  701.    /* VIOCONFIGINFO.adapter constants */
  702.  
  703.    #define DISPLAY_MONOCHROME      0x0000
  704.    #define DISPLAY_CGA             0x0001
  705.    #define DISPLAY_EGA             0x0002
  706.    #define DISPLAY_VGA             0x0003
  707.    #define DISPLAY_8514A           0x0007
  708.    #define DISPLAY_IMAGEADAPTER    0x0008
  709.    #define DISPLAY_XGA             0x0009
  710.  
  711.    /* VIOCONFIGINFO.display constants */
  712.  
  713.    #define MONITOR_MONOCHROME      0x0000
  714.    #define MONITOR_COLOR           0x0001
  715.    #define MONITOR_ENHANCED        0x0002
  716.    #define MONITOR_8503            0x0003
  717.    #define MONITOR_851X_COLOR      0x0004
  718.    #define MONITOR_8514            0x0009
  719.    #define MONITOR_FLATPANEL       0x000A
  720.    #define MONITOR_8507_8604       0x000B
  721.    #define MONITOR_8515            0x000C
  722.    #define MONITOR_9515            0x000F
  723.    #define MONITOR_9517            0x0011
  724.    #define MONITOR_9518            0x0012
  725.  
  726.    /* structure for VioGetConfig() */
  727.    #pragma pack(2)
  728.  
  729.    typedef  struct _VIOCONFIGINFO   /* vioin */
  730.    {
  731.       USHORT  cb;
  732.       USHORT  adapter;
  733.       USHORT  display;
  734.       ULONG   cbMemory;
  735.       USHORT  Configuration;
  736.       USHORT  VDHVersion;
  737.       USHORT  Flags;
  738.       ULONG   HWBufferSize;
  739.       ULONG   FullSaveSize;
  740.       ULONG   PartSaveSize;
  741.       USHORT  EMAdaptersOFF;
  742.       USHORT  EMDisplaysOFF;
  743.    } VIOCONFIGINFO;
  744.  
  745.    typedef VIOCONFIGINFO *PVIOCONFIGINFO;
  746.  
  747.  
  748.    #define VIO_CONFIG_CURRENT         0
  749.    #define VIO_CONFIG_PRIMARY         1
  750.    #define VIO_CONFIG_SECONDARY       2
  751.  
  752.    APIRET16 APIENTRY16  VioGetConfig (USHORT usConfigId,
  753.                                       PVIOCONFIGINFO pvioin,
  754.                                       HVIO hvio);
  755.  
  756.    /* structure for VioGet/SetFont() */
  757.    typedef struct _VIOFONTINFO     /* viofi */
  758.    {
  759.       USHORT  cb;
  760.       USHORT  type;
  761.       USHORT  cxCell;
  762.       USHORT  cyCell;
  763.       PVOID16 pbData;
  764.       USHORT  cbData;
  765.    } VIOFONTINFO;
  766.    typedef VIOFONTINFO *PVIOFONTINFO;
  767.  
  768.    #define VGFI_GETCURFONT            0
  769.    #define VGFI_GETROMFONT            1
  770.  
  771.    APIRET16 APIENTRY16  VioGetFont (PVIOFONTINFO pviofi,
  772.                                     HVIO hvio);
  773.  
  774.    APIRET16 APIENTRY16  VioSetFont (PVIOFONTINFO pviofi,
  775.                                     HVIO hvio);
  776.  
  777.    APIRET16 APIENTRY16  VioGetCp (USHORT usReserved,
  778.                                   PUSHORT pIdCodePage,
  779.                                   HVIO hvio);
  780.  
  781.    APIRET16 APIENTRY16  VioSetCp (USHORT usReserved,
  782.                                   USHORT idCodePage,
  783.                                   HVIO hvio);
  784.  
  785.    typedef struct _VIOPALSTATE     /* viopal */
  786.    {
  787.       USHORT  cb;
  788.       USHORT  type;
  789.       USHORT  iFirst;
  790.       USHORT  acolor[1];
  791.    } VIOPALSTATE;
  792.    typedef VIOPALSTATE *PVIOPALSTATE;
  793.  
  794.    typedef struct _VIOOVERSCAN     /* vioos */
  795.    {
  796.       USHORT  cb;
  797.       USHORT  type;
  798.       USHORT  color;
  799.    } VIOOVERSCAN;
  800.    typedef VIOOVERSCAN *PVIOOVERSCAN;
  801.  
  802.    typedef struct _VIOINTENSITY    /* vioint */
  803.    {
  804.       USHORT  cb;
  805.       USHORT  type;
  806.       USHORT  fs;
  807.    } VIOINTENSITY;
  808.    typedef VIOINTENSITY *PVIOINTENSITY;
  809.  
  810.    typedef struct _VIOCOLORREG    /* viocreg */
  811.    {
  812.       USHORT  cb;
  813.       USHORT  type;
  814.       USHORT  firstcolorreg;
  815.       USHORT  numcolorregs;
  816.       PCH     colorregaddr;
  817.    } VIOCOLORREG;
  818.    typedef VIOCOLORREG *PVIOCOLORREG;
  819.  
  820.    typedef struct _VIOSETULINELOC    /* viouline */
  821.    {
  822.       USHORT  cb;
  823.       USHORT  type;
  824.       USHORT  scanline;
  825.    } VIOSETULINELOC;
  826.    typedef VIOSETULINELOC *PVIOSETULINELOC;
  827.  
  828.    typedef struct _VIOSETTARGET    /* viosett */
  829.    {
  830.       USHORT  cb;
  831.       USHORT  type;
  832.       USHORT  defaultalgorithm;
  833.    } VIOSETTARGET;
  834.    typedef VIOSETTARGET *PVIOSETTARGET;
  835.  
  836.    APIRET16 APIENTRY16  VioGetState (PVOID pState,
  837.                                      HVIO hvio);
  838.    APIRET16 APIENTRY16  VioSetState (PVOID pState,
  839.                                      HVIO hvio);
  840.  
  841. #endif /* INCL_VIO */
  842.  
  843.  
  844.  
  845. #ifdef INCL_MOU
  846.  
  847.    #define MouClose                MOU16CLOSE
  848.    #define MouDeRegister           MOU16DEREGISTER
  849.    #define MouDrawPtr              MOU16DRAWPTR
  850.    #define MouFlushQue             MOU16FLUSHQUE
  851.    #define MouGetDevStatus         MOU16GETDEVSTATUS
  852.    #define MouGetEventMask         MOU16GETEVENTMASK
  853.    #define MouGetNumButtons        MOU16GETNUMBUTTONS
  854.    #define MouGetNumMickeys        MOU16GETNUMMICKEYS
  855.    #define MouGetNumQueEl          MOU16GETNUMQUEEL
  856.    #define MouGetPtrPos            MOU16GETPTRPOS
  857.    #define MouGetPtrShape          MOU16GETPTRSHAPE
  858.    #define MouGetScaleFact         MOU16GETSCALEFACT
  859.    #define MouGetThreshold         MOU16GETTHRESHOLD
  860.    #define MouInitReal             MOU16INITREAL
  861.    #define MouOpen                 MOU16OPEN
  862.    #define MouReadEventQue         MOU16READEVENTQUE
  863.    #define MouRegister             MOU16REGISTER
  864.    #define MouRemovePtr            MOU16REMOVEPTR
  865.    #define MouSetDevStatus         MOU16SETDEVSTATUS
  866.    #define MouSetEventMask         MOU16SETEVENTMASK
  867.    #define MouSetPtrPos            MOU16SETPTRPOS
  868.    #define MouSetPtrShape          MOU16SETPTRSHAPE
  869.    #define MouSetScaleFact         MOU16SETSCALEFACT
  870.    #define MouSetThreshold         MOU16SETTHRESHOLD
  871.    #define MouSynch                MOU16SYNCH
  872.  
  873.    #define Mou16Close              MOU16CLOSE
  874.    #define Mou16DeRegister         MOU16DEREGISTER
  875.    #define Mou16DrawPtr            MOU16DRAWPTR
  876.    #define Mou16FlushQue           MOU16FLUSHQUE
  877.    #define Mou16GetDevStatus       MOU16GETDEVSTATUS
  878.    #define Mou16GetEventMask       MOU16GETEVENTMASK
  879.    #define Mou16GetNumButtons      MOU16GETNUMBUTTONS
  880.    #define Mou16GetNumMickeys      MOU16GETNUMMICKEYS
  881.    #define Mou16GetNumQueEl        MOU16GETNUMQUEEL
  882.    #define Mou16GetPtrPos          MOU16GETPTRPOS
  883.    #define Mou16GetPtrShape        MOU16GETPTRSHAPE
  884.    #define Mou16GetScaleFact       MOU16GETSCALEFACT
  885.    #define Mou16GetThreshold       MOU16GETTHRESHOLD
  886.    #define Mou16InitReal           MOU16INITREAL
  887.    #define Mou16Open               MOU16OPEN
  888.    #define Mou16ReadEventQue       MOU16READEVENTQUE
  889.    #define Mou16Register           MOU16REGISTER
  890.    #define Mou16RemovePtr          MOU16REMOVEPTR
  891.    #define Mou16SetDevStatus       MOU16SETDEVSTATUS
  892.    #define Mou16SetEventMask       MOU16SETEVENTMASK
  893.    #define Mou16SetPtrPos          MOU16SETPTRPOS
  894.    #define Mou16SetPtrShape        MOU16SETPTRSHAPE
  895.    #define Mou16SetScaleFact       MOU16SETSCALEFACT
  896.    #define Mou16SetThreshold       MOU16SETTHRESHOLD
  897.    #define Mou16Synch              MOU16SYNCH
  898.  
  899.  
  900.    typedef unsigned short  HMOU;
  901.    typedef HMOU           *PHMOU;
  902.  
  903.    APIRET16 APIENTRY16  MouRegister (PSZ pszModName,
  904.                                      PSZ pszEntryName,
  905.                                      ULONG flFuns);
  906.  
  907.    #define MR_MOUGETNUMBUTTONS        0x00000001L
  908.    #define MR_MOUGETNUMMICKEYS        0x00000002L
  909.    #define MR_MOUGETDEVSTATUS         0x00000004L
  910.    #define MR_MOUGETNUMQUEEL          0x00000008L
  911.    #define MR_MOUREADEVENTQUE         0x00000010L
  912.    #define MR_MOUGETSCALEFACT         0x00000020L
  913.    #define MR_MOUGETEVENTMASK         0x00000040L
  914.    #define MR_MOUSETSCALEFACT         0x00000080L
  915.    #define MR_MOUSETEVENTMASK         0x00000100L
  916.    #define MR_MOUOPEN                 0x00000800L
  917.    #define MR_MOUCLOSE                0x00001000L
  918.    #define MR_MOUGETPTRSHAPE          0x00002000L
  919.    #define MR_MOUSETPTRSHAPE          0x00004000L
  920.    #define MR_MOUDRAWPTR              0x00008000L
  921.    #define MR_MOUREMOVEPTR            0x00010000L
  922.    #define MR_MOUGETPTRPOS            0x00020000L
  923.    #define MR_MOUSETPTRPOS            0x00040000L
  924.    #define MR_MOUINITREAL             0x00080000L
  925.    #define MR_MOUSETDEVSTATUS         0x00100000L
  926.  
  927.    APIRET16 APIENTRY16  MouDeRegister (void);
  928.  
  929.    APIRET16 APIENTRY16  MouFlushQue (HMOU hmou);
  930.  
  931.    #define MHK_BUTTON1                0x0001
  932.    #define MHK_BUTTON2                0x0002
  933.    #define MHK_BUTTON3                0x0004
  934.  
  935.    /* structure for MouGet/SetPtrPos() */
  936.    typedef struct _PTRLOC      /* moupl */
  937.    {
  938.       USHORT row;
  939.       USHORT col;
  940.    } PTRLOC;
  941.    typedef PTRLOC *PPTRLOC;
  942.  
  943.    APIRET16 APIENTRY16  MouGetPtrPos (PPTRLOC pmouLoc,
  944.                                       HMOU hmou);
  945.    APIRET16 APIENTRY16  MouSetPtrPos (PPTRLOC pmouLoc,
  946.                                       HMOU hmou);
  947.  
  948.    /* structure for MouGet/SetPtrShape() */
  949.    typedef struct _PTRSHAPE    /* moups */
  950.    {
  951.       USHORT cb;
  952.       USHORT col;
  953.       USHORT row;
  954.       USHORT colHot;
  955.       USHORT rowHot;
  956.    } PTRSHAPE;
  957.    typedef PTRSHAPE *PPTRSHAPE;
  958.  
  959.    APIRET16 APIENTRY16  MouSetPtrShape (PBYTE pBuf,
  960.                                         PPTRSHAPE pmoupsInfo,
  961.                                         HMOU hmou);
  962.  
  963.    APIRET16 APIENTRY16  MouGetPtrShape (PBYTE pBuf,
  964.                                         PPTRSHAPE pmoupsInfo,
  965.                                         HMOU hmou);
  966.  
  967.    /* MouGetDevStatus/MouSetDevStatus device status constants */
  968.  
  969.    #define MOUSE_QUEUEBUSY        0x0001
  970.    #define MOUSE_BLOCKREAD        0x0002
  971.    #define MOUSE_FLUSH            0x0004
  972.    #define MOUSE_UNSUPPORTED_MODE 0x0008
  973.    #define MOUSE_DISABLED         0x0100
  974.    #define MOUSE_MICKEYS          0x0200
  975.  
  976.  
  977.    APIRET16 APIENTRY16  MouGetDevStatus (PUSHORT pfsDevStatus,
  978.                                          HMOU hmou);
  979.  
  980.    APIRET16 APIENTRY16  MouGetNumButtons (PUSHORT pcButtons,
  981.                                           HMOU hmou);
  982.  
  983.    APIRET16 APIENTRY16  MouGetNumMickeys (PUSHORT pcMickeys,
  984.                                           HMOU hmou);
  985.  
  986.    /* MouReadEventQue */
  987.  
  988.    #define MOU_NOWAIT      0x0000
  989.    #define MOU_WAIT        0x0001
  990.  
  991.    /* structure for MouReadEventQue() */
  992.    #pragma pack(2)
  993.  
  994.    typedef  struct _MOUEVENTINFO    /* mouev */
  995.    {
  996.       USHORT fs;
  997.       ULONG  time;
  998.       SHORT  row;
  999.       SHORT  col;
  1000.    } MOUEVENTINFO;
  1001.    typedef MOUEVENTINFO *PMOUEVENTINFO;
  1002.  
  1003.    APIRET16 APIENTRY16  MouReadEventQue (PMOUEVENTINFO pmouevEvent,
  1004.                                          PUSHORT pfWait,
  1005.                                          HMOU hmou);
  1006.  
  1007.    /* structure for MouGetNumQueEl() */
  1008.    typedef struct _MOUQUEINFO      /* mouqi */
  1009.    {
  1010.       USHORT cEvents;
  1011.       USHORT cmaxEvents;
  1012.    } MOUQUEINFO;
  1013.    typedef MOUQUEINFO *PMOUQUEINFO;
  1014.  
  1015.    APIRET16 APIENTRY16  MouGetNumQueEl (PMOUQUEINFO qmouqi,
  1016.                                         HMOU hmou);
  1017.  
  1018.    /* MouGetEventMask/MouSetEventMask events */
  1019.  
  1020.    #define MOUSE_MOTION                 0x0001
  1021.    #define MOUSE_MOTION_WITH_BN1_DOWN   0x0002
  1022.    #define MOUSE_BN1_DOWN               0x0004
  1023.    #define MOUSE_MOTION_WITH_BN2_DOWN   0x0008
  1024.    #define MOUSE_BN2_DOWN               0x0010
  1025.    #define MOUSE_MOTION_WITH_BN3_DOWN   0x0020
  1026.    #define MOUSE_BN3_DOWN               0x0040
  1027.  
  1028.    APIRET16 APIENTRY16  MouGetEventMask (PUSHORT pfsEvents,
  1029.                                          HMOU hmou);
  1030.  
  1031.    APIRET16 APIENTRY16  MouSetEventMask (PUSHORT pfsEvents,
  1032.                                          HMOU hmou);
  1033.  
  1034.    /* structure for MouGet/SetScaleFact() */
  1035.    typedef  struct _SCALEFACT   /* mousc */
  1036.    {
  1037.       USHORT rowScale;
  1038.       USHORT colScale;
  1039.    } SCALEFACT;
  1040.    typedef SCALEFACT *PSCALEFACT;
  1041.  
  1042.    APIRET16 APIENTRY16  MouGetScaleFact (PSCALEFACT pmouscFactors,
  1043.                                          HMOU hmou);
  1044.  
  1045.    APIRET16 APIENTRY16  MouSetScaleFact (PSCALEFACT pmouscFactors,
  1046.                                          HMOU hmou);
  1047.  
  1048.    APIRET16 APIENTRY16  MouOpen (PSZ pszDvrName,
  1049.                                  PHMOU phmou);
  1050.  
  1051.    APIRET16 APIENTRY16  MouClose (HMOU hmou);
  1052.  
  1053.    /* structure for MouRemovePtr() */
  1054.    typedef struct _NOPTRRECT   /* mourt */
  1055.    {
  1056.       USHORT row;
  1057.       USHORT col;
  1058.       USHORT cRow;
  1059.       USHORT cCol;
  1060.    } NOPTRRECT;
  1061.    typedef NOPTRRECT *PNOPTRRECT;
  1062.  
  1063.    APIRET16 APIENTRY16  MouRemovePtr (PNOPTRRECT pmourtRect,
  1064.                                       HMOU hmou);
  1065.  
  1066.    APIRET16 APIENTRY16  MouDrawPtr (HMOU hmou);
  1067.  
  1068.    #define MOU_NODRAW                 0x0001
  1069.    #define MOU_DRAW                   0x0000
  1070.    #define MOU_MICKEYS                0x0002
  1071.    #define MOU_PELS                   0x0000
  1072.  
  1073.    APIRET16 APIENTRY16  MouSetDevStatus (PUSHORT pfsDevStatus,
  1074.                                          HMOU hmou);
  1075.  
  1076.    APIRET16 APIENTRY16  MouInitReal (PSZ);
  1077.  
  1078.    APIRET16 APIENTRY16  MouSynch(USHORT pszDvrName);
  1079.  
  1080.    typedef struct _THRESHOLD       /* threshold */
  1081.    {
  1082.       USHORT Length;          /* Length Field            */
  1083.       USHORT Level1;          /* First movement level    */
  1084.       USHORT Lev1Mult;        /* First level multiplier  */
  1085.       USHORT Level2;          /* Second movement level   */
  1086.       USHORT lev2Mult;        /* Second level multiplier */
  1087.    } THRESHOLD;
  1088.    typedef THRESHOLD *PTHRESHOLD;
  1089.  
  1090.    APIRET16 APIENTRY16  MouGetThreshold(PTHRESHOLD pthreshold,
  1091.                                         HMOU hmou);
  1092.  
  1093.    APIRET16 APIENTRY16  MouSetThreshold(PTHRESHOLD pthreshold,
  1094.                                         HMOU hmou);
  1095.  
  1096. #endif /* INCL_MOU */
  1097.  
  1098. /* restore default packing */
  1099. #pragma pack()
  1100.  
  1101. #endif /* __BSESUB__ */
  1102.  
  1103. /* NOINC */
  1104. #ifdef __IBMC__
  1105.    #pragma checkout( suspend )
  1106.    #ifndef __CHKHDR__
  1107.       #pragma checkout( resume )
  1108.    #endif
  1109.    #pragma checkout( resume )
  1110. #endif
  1111. /* INC */
  1112.  
  1113. /**************************** end of file **********************************/
  1114.