home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / cset21v5.zip / TOOLKT21 / C / OS2H / BSESUB.H < prev    next >
C/C++ Source or Header  |  1993-03-12  |  39KB  |  1,098 lines

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