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