home *** CD-ROM | disk | FTP | other *** search
- C****************************** Module Header *******************************
- C*
- C* Module Name: BSESUB.FD
- C*
- C* OS/2 Base Include File
- C*
- C* Copyright (c) 1988-1989 Microsoft Corporation
- C*
- C****************************************************************************
- C
- * Subcomponents marked with "+" are partially included by default
- * $DEFINE: To include
- *
- * INCL_KBD KBD
- * INCL_VIO VIO
- * INCL_MOU MOU
- *
-
- $IF defined(INCL_KBD)
-
- INTEGER*2 KbdRegister[EXTERN]
-
- INTEGER*4 KR_KBDCHARIN, KR_KBDPEEK, KR_KBDFLUSHBUFFER,
- + KR_KBDGETSTATUS, KR_KBDSETSTATUS, KR_KBDSTRINGIN, KR_KBDOPEN,
- + KR_KBDCLOSE, KR_KBDGETFOCUS, KR_KBDFREEFOCUS, KR_KBDGETCP,
- + KR_KBDSETCP, KR_KBDXLATE, KR_KBDSETCUSTXT
-
- PARAMETER (KR_KBDCHARIN =#00000001)
- PARAMETER (KR_KBDPEEK =#00000002)
- PARAMETER (KR_KBDFLUSHBUFFER =#00000004)
- PARAMETER (KR_KBDGETSTATUS =#00000008)
- PARAMETER (KR_KBDSETSTATUS =#00000010)
- PARAMETER (KR_KBDSTRINGIN =#00000020)
- PARAMETER (KR_KBDOPEN =#00000040)
- PARAMETER (KR_KBDCLOSE =#00000080)
- PARAMETER (KR_KBDGETFOCUS =#00000100)
- PARAMETER (KR_KBDFREEFOCUS =#00000200)
- PARAMETER (KR_KBDGETCP =#00000400)
- PARAMETER (KR_KBDSETCP =#00000800)
- PARAMETER (KR_KBDXLATE =#00001000)
- PARAMETER (KR_KBDSETCUSTXT =#00002000)
-
- INTEGER*2 IO_WAIT, IO_NOWAIT
-
- PARAMETER (IO_WAIT =0)
- PARAMETER (IO_NOWAIT =1)
-
- INTEGER*2 KbdDeRegister[EXTERN]
-
- C KBDKEYINFO structure, for KbdCharIn and KbdPeek
- STRUCTURE/KBDKEYINFO/
- CHARACTER*1 chChar
- CHARACTER*1 chScan
- INTEGER*1 fbStatus
- INTEGER*1 bNlsShift ! must be zero
- INTEGER*2 fsState
- INTEGER*4 time
- END STRUCTURE
-
- INTEGER*2 KbdCharIn[EXTERN]
- INTEGER*2 KbdPeek[EXTERN]
-
- C structure for KbdStringIn()
- STRUCTURE/STRINGINBUF/
- INTEGER*2 cb
- INTEGER*2 cchIn
- END STRUCTURE
-
- INTEGER*2 KbdStringIn[EXTERN]
- INTEGER*2 KbdFlushBuffer[EXTERN]
-
- C KBDINFO structure, for KbdSet/GetStatus
- STRUCTURE/KBDINFO/
- INTEGER*2 cb
- INTEGER*2 fsMask
- INTEGER*2 chTurnAround
- INTEGER*2 fsInterim
- INTEGER*2 fsState
- END STRUCTURE
-
- INTEGER*2 KbdSetStatus[EXTERN]
- INTEGER*2 KbdGetStatus[EXTERN]
- INTEGER*2 KbdSetCp[EXTERN]
- INTEGER*2 KbdGetCp[EXTERN]
- INTEGER*2 KbdOpen[EXTERN]
- INTEGER*2 KbdClose[EXTERN]
- INTEGER*2 KbdGetFocus[EXTERN]
- INTEGER*2 KbdFreeFocus[EXTERN]
- INTEGER*2 KbdSynch[EXTERN]
- INTEGER*2 KbdSetFgnd[EXTERN]
-
- C structure for KbdXlate()
- STRUCTURE/KBDXLATE_/
- CHARACTER*1 chChar
- CHARACTER*1 chScan
- INTEGER*1 fbStatus
- INTEGER*1 bNlsShift ! must be zero
- INTEGER*2 fsState
- INTEGER*4 time
- INTEGER*2 fsDD
- INTEGER*2 fsXlate
- INTEGER*2 fsShift
- INTEGER*2 sZero ! must be zero
- END STRUCTURE
-
- INTEGER*2 KbdXlate[EXTERN]
- INTEGER*2 KbdSetCustXt[EXTERN]
-
- $ENDIF ! INCL_KBD
-
- $IF defined(INCL_VIO)
-
- INTEGER*2 VioRegister[EXTERN]
-
- C first parameter registration constants
- INTEGER*4 VR_VIOGETCURPOS, VR_VIOGETCURTYPE, VR_VIOGETMODE,
- + VR_VIOGETBUF, VR_VIOGETPHYSBUF, VR_VIOSETCURPOS,
- + VR_VIOSETCURTYPE, VR_VIOSETMODE, VR_VIOSHOWBUF,
- + VR_VIOREADCHARSTR, VR_VIOREADCELLSTR, VR_VIOWRTNCHAR,
- + VR_VIOWRTNATTR, VR_VIOWRTNCELL, VR_VIOWRTTTY, VR_VIOWRTCHARSTR
-
- PARAMETER (VR_VIOGETCURPOS =#00000001)
- PARAMETER (VR_VIOGETCURTYPE =#00000002)
- PARAMETER (VR_VIOGETMODE =#00000004)
- PARAMETER (VR_VIOGETBUF =#00000008)
- PARAMETER (VR_VIOGETPHYSBUF =#00000010)
- PARAMETER (VR_VIOSETCURPOS =#00000020)
- PARAMETER (VR_VIOSETCURTYPE =#00000040)
- PARAMETER (VR_VIOSETMODE =#00000080)
- PARAMETER (VR_VIOSHOWBUF =#00000100)
- PARAMETER (VR_VIOREADCHARSTR =#00000200)
- PARAMETER (VR_VIOREADCELLSTR =#00000400)
- PARAMETER (VR_VIOWRTNCHAR =#00000800)
- PARAMETER (VR_VIOWRTNATTR =#00001000)
- PARAMETER (VR_VIOWRTNCELL =#00002000)
- PARAMETER (VR_VIOWRTTTY =#00004000)
- PARAMETER (VR_VIOWRTCHARSTR =#00008000)
-
- INTEGER*4 VR_VIOWRTCHARSTRATT, VR_VIOWRTCELLSTR, VR_VIOSCROLLUP,
- + VR_VIOSCROLLDN, VR_VIOSCROLLLF, VR_VIOSCROLLRT, VR_VIOSETANSI,
- + VR_VIOGETANSI, VR_VIOPRTSC, VR_VIOSCRLOCK, VR_VIOSCRUNLOCK,
- + VR_VIOSAVREDRAWWAIT, VR_VIOSAVREDRAWUNDO, VR_VIOPOPUP,
- + VR_VIOENDPOPUP, VR_VIOPRTSCTOGGLE
-
- PARAMETER (VR_VIOWRTCHARSTRATT =#00010000)
- PARAMETER (VR_VIOWRTCELLSTR =#00020000)
- PARAMETER (VR_VIOSCROLLUP =#00040000)
- PARAMETER (VR_VIOSCROLLDN =#00080000)
- PARAMETER (VR_VIOSCROLLLF =#00100000)
- PARAMETER (VR_VIOSCROLLRT =#00200000)
- PARAMETER (VR_VIOSETANSI =#00400000)
- PARAMETER (VR_VIOGETANSI =#00800000)
- PARAMETER (VR_VIOPRTSC =#01000000)
- PARAMETER (VR_VIOSCRLOCK =#02000000)
- PARAMETER (VR_VIOSCRUNLOCK =#04000000)
- PARAMETER (VR_VIOSAVREDRAWWAIT =#08000000)
- PARAMETER (VR_VIOSAVREDRAWUNDO =#10000000)
- PARAMETER (VR_VIOPOPUP =#20000000)
- PARAMETER (VR_VIOENDPOPUP =#40000000)
- PARAMETER (VR_VIOPRTSCTOGGLE =#80000000)
-
- C second parameter registration constants
- INTEGER*4 VR_VIOMODEWAIT, VR_VIOMODEUNDO, VR_VIOGETFONT,
- + VR_VIOGETCONFIG, VR_VIOSETCP, VR_VIOGETCP, VR_VIOSETFONT,
- + VR_VIOGETSTATE, VR_VIOSETSTATE
-
- PARAMETER (VR_VIOMODEWAIT =#00000001)
- PARAMETER (VR_VIOMODEUNDO =#00000002)
- PARAMETER (VR_VIOGETFONT =#00000004)
- PARAMETER (VR_VIOGETCONFIG =#00000008)
- PARAMETER (VR_VIOSETCP =#00000010)
- PARAMETER (VR_VIOGETCP =#00000020)
- PARAMETER (VR_VIOSETFONT =#00000040)
- PARAMETER (VR_VIOGETSTATE =#00000080)
- PARAMETER (VR_VIOSETSTATE =#00000100)
-
- INTEGER*2 VioDeRegister[EXTERN]
- INTEGER*2 VioGetBuf[EXTERN]
- INTEGER*2 VioGetCurPos[EXTERN]
- INTEGER*2 VioSetCurPos[EXTERN]
-
- C structure for VioSet/GetCurType()
-
- STRUCTURE/VIOCURSORINFO/
- INTEGER*2 yStart
- INTEGER*2 cEnd
- INTEGER*2 cx
- INTEGER*2 attr
- END STRUCTURE
-
- INTEGER*2 VioGetCurType[EXTERN]
- INTEGER*2 VioSetCurType[EXTERN]
-
- C structure for VioSet/GetMode()
- STRUCTURE/VIOMODEINFO/
- INTEGER*2 cb
- INTEGER*1 fbType
- INTEGER*1 color
- INTEGER*2 col
- INTEGER*2 row
- INTEGER*2 hres
- INTEGER*2 vres
- INTEGER*1 fmt_ID ! must be zero
- INTEGER*1 attrib ! must be zero
- END STRUCTURE
-
- INTEGER*2 VGMT_OTHER, VGMT_GRAPHICS, VGMT_DISABLEBURST
-
- PARAMETER (VGMT_OTHER =#01)
- PARAMETER (VGMT_GRAPHICS =#02)
- PARAMETER (VGMT_DISABLEBURST =#04)
-
- INTEGER*2 VioGetMode[EXTERN]
- INTEGER*2 VioSetMode[EXTERN]
-
- C structure for VioGetPhysBuf()
-
- STRUCTURE/VIOPHYSBUF/
- INTEGER*4 pBuf
- INTEGER*4 cb
- INTEGER*2 asel(1)
- END STRUCTURE
-
- INTEGER*2 VioGetPhysBuf[EXTERN]
- INTEGER*2 VioReadCellStr[EXTERN]
- INTEGER*2 VioReadCharStr[EXTERN]
- INTEGER*2 VioWrtCellStr[EXTERN]
- INTEGER*2 VioWrtCharStr[EXTERN]
- INTEGER*2 VioScrollDn[EXTERN]
- INTEGER*2 VioScrollUp[EXTERN]
- INTEGER*2 VioScrollLf[EXTERN]
- INTEGER*2 VioScrollRt[EXTERN]
- INTEGER*2 VioWrtNAttr[EXTERN]
- INTEGER*2 VioWrtNCell[EXTERN]
- INTEGER*2 VioWrtTTY[EXTERN]
- INTEGER*2 VioWrtCharStrAtt[EXTERN]
- INTEGER*2 VioShowBuf[EXTERN]
-
- INTEGER*2 ANSI_ON, ANSI_OFF
- PARAMETER (ANSI_ON =1)
- PARAMETER (ANSI_OFF =0)
-
- INTEGER*2 VioSetAnsi[EXTERN]
- INTEGER*2 VioGetAnsi[EXTERN]
- INTEGER*2 VioPrtSc[EXTERN]
- INTEGER*2 VioPrtScToggle[EXTERN]
-
- INTEGER*2 VSRWI_SAVEANDREDRAW, VSRWI_REDRAW
- PARAMETER (VSRWI_SAVEANDREDRAW =0)
- PARAMETER (VSRWI_REDRAW =1)
-
- INTEGER*2 VSRWN_SAVE, VSRWN_REDRAW
- PARAMETER (VSRWN_SAVE =0)
- PARAMETER (VSRWN_REDRAW =1)
-
- INTEGER*2 UNDOI_GETOWNER, UNDOI_RELEASEOWNER
- PARAMETER (UNDOI_GETOWNER =0)
- PARAMETER (UNDOI_RELEASEOWNER =1)
-
- INTEGER*2 UNDOK_ERRORCODE, UNDOK_TERMINATE
- PARAMETER (UNDOK_ERRORCODE =0)
- PARAMETER (UNDOK_TERMINATE =1)
-
- C INTEGER*2 VioRedrawSize[EXTERN]
- INTEGER*2 VioSavRedrawWait[EXTERN]
- INTEGER*2 VioSavRedrawUndo[EXTERN]
-
- INTEGER*2 VMWR_POPUP, VMWN_POPUP
- PARAMETER (VMWR_POPUP =0)
- PARAMETER (VMWN_POPUP =0)
-
- INTEGER*2 VioModeWait[EXTERN]
- INTEGER*2 VioModeUndo[EXTERN]
-
- INTEGER*2 LOCKIO_NOWAIT, LOCKIO_WAIT
- PARAMETER (LOCKIO_NOWAIT =0)
- PARAMETER (LOCKIO_WAIT =1)
-
- INTEGER*2 LOCK_SUCCESS, LOCK_FAIL
- PARAMETER (LOCK_SUCCESS =0)
- PARAMETER (LOCK_FAIL =1)
-
- INTEGER*2 VioScrLock[EXTERN]
- INTEGER*2 VioScrUnLock[EXTERN]
-
- INTEGER*2 VP_NOWAIT, VP_WAIT, VP_OPAQUE, VP_TRANSPARENT
- PARAMETER (VP_NOWAIT =#0000)
- PARAMETER (VP_WAIT =#0001)
- PARAMETER (VP_OPAQUE =#0000)
- PARAMETER (VP_TRANSPARENT =#0002)
-
- INTEGER*2 VioPopUp[EXTERN]
- INTEGER*2 VioEndPopUp[EXTERN]
-
- C structure for VioGetConfig()
- STRUCTURE/VIOCONFIGINFO/
- INTEGER*2 adapter
- INTEGER*2 display
- INTEGER*4 cbMemory
- END STRUCTURE
-
- INTEGER*2 VioGetConfig[EXTERN]
-
- C structure for VioGet/SetFont()
- STRUCTURE/VIOFONTINFO/
- INTEGER*2 cb
- INTEGER*2 type
- INTEGER*2 cxCell
- INTEGER*2 cyCell
- INTEGER*4 pbData
- INTEGER*2 cbData
- END STRUCTURE
-
- INTEGER*2 VGFI_GETCURFONT, VGFI_GETROMFONT
- PARAMETER (VGFI_GETCURFONT =0)
- PARAMETER (VGFI_GETROMFONT =1)
-
- INTEGER*2 VioGetFont[EXTERN]
- INTEGER*2 VioSetFont[EXTERN]
- INTEGER*2 VioGetCp[EXTERN]
- INTEGER*2 VioSetCp[EXTERN]
-
- STRUCTURE/VIOSTATE/
- INTEGER*2 cb
- INTEGER*2 type
- UNION
- MAP ! if "type" = 0
- INTEGER*2 iFirst
- INTEGER*2 acolor(16)
- END MAP
- MAP ! if "type" = 1
- INTEGER*2 color
- END MAP
- MAP ! if "type" = 2
- INTEGER*2 fs
- END MAP
- END UNION
- END STRUCTURE
-
- INTEGER*2 VioGetState[EXTERN]
- INTEGER*2 VioSetState[EXTERN]
-
- $ENDIF ! INCL_VIO
-
- $IF defined(INCL_MOU)
-
- INTEGER*2 MouRegister[EXTERN]
-
- INTEGER*4 MR_MOUGETNUMBUTTONS, MR_MOUGETNUMMICKEYS,
- + MR_MOUGETDEVSTATUS, MR_MOUGETNUMQUEEL, MR_MOUREADEVENTQUE,
- + MR_MOUGETSCALEFACT, MR_MOUGETEVENTMASK, MR_MOUSETSCALEFACT,
- + MR_MOUSETEVENTMASK, MR_MOUOPEN, MR_MOUCLOSE, MR_MOUGETPTRSHAPE,
- + MR_MOUSETPTRSHAPE, MR_MOUDRAWPTR, MR_MOUREMOVEPTR,
- + MR_MOUGETPTRPOS, MR_MOUSETPTRPOS, MR_MOUINITREAL,
- + MR_MOUSETDEVSTATUS
-
- PARAMETER (MR_MOUGETNUMBUTTONS =#00000001)
- PARAMETER (MR_MOUGETNUMMICKEYS =#00000002)
- PARAMETER (MR_MOUGETDEVSTATUS =#00000004)
- PARAMETER (MR_MOUGETNUMQUEEL =#00000008)
- PARAMETER (MR_MOUREADEVENTQUE =#00000010)
- PARAMETER (MR_MOUGETSCALEFACT =#00000020)
- PARAMETER (MR_MOUGETEVENTMASK =#00000040)
- PARAMETER (MR_MOUSETSCALEFACT =#00000080)
- PARAMETER (MR_MOUSETEVENTMASK =#00000100)
- PARAMETER (MR_MOUOPEN =#00000800)
- PARAMETER (MR_MOUCLOSE =#00001000)
- PARAMETER (MR_MOUGETPTRSHAPE =#00002000)
- PARAMETER (MR_MOUSETPTRSHAPE =#00004000)
- PARAMETER (MR_MOUDRAWPTR =#00008000)
- PARAMETER (MR_MOUREMOVEPTR =#00010000)
- PARAMETER (MR_MOUGETPTRPOS =#00020000)
- PARAMETER (MR_MOUSETPTRPOS =#00040000)
- PARAMETER (MR_MOUINITREAL =#00080000)
- PARAMETER (MR_MOUSETDEVSTATUS =#00100000)
-
- INTEGER*2 MouDeRegister[EXTERN]
-
- INTEGER*2 MHK_BUTTON1, MHK_BUTTON2, MHK_BUTTON3
- PARAMETER (MHK_BUTTON1 =#0001)
- PARAMETER (MHK_BUTTON2 =#0002)
- PARAMETER (MHK_BUTTON3 =#0004)
-
- C structure for MouGet/SetPtrPos()
- STRUCTURE/PTRLOC/
- INTEGER*2 row
- INTEGER*2 col
- END STRUCTURE
-
- INTEGER*2 MouGetPtrPos[EXTERN]
- INTEGER*2 MouSetPtrPos[EXTERN]
-
- C structure for MouGet/SetPtrShape()
- STRUCTURE/PTRSHAPE/
- INTEGER*2 cb
- INTEGER*2 col
- INTEGER*2 row
- INTEGER*2 colHot
- INTEGER*2 colRow
- END STRUCTURE
-
- INTEGER*2 MouSetPtrShape[EXTERN]
- INTEGER*2 MouGetPtrShape[EXTERN]
- INTEGER*2 MouGetDevStatus[EXTERN]
- INTEGER*2 MouGetNumButtons[EXTERN]
- INTEGER*2 MouGetNumMickeys[EXTERN]
-
- C structure for MouReadEventQue()
- STRUCTURE/MOUEVENTINFO/
- INTEGER*2 fs
- INTEGER*4 time
- INTEGER*2 row
- INTEGER*2 col
- END STRUCTURE
-
- INTEGER*2 MouReadEventQue[EXTERN]
-
- C structure for MouGetNumQueEl()
- STRUCTURE/MOUQUEINFO/
- INTEGER*2 cEvents
- INTEGER*2 cmaxEvents
- END STRUCTURE
-
- INTEGER*2 MouGetNumQueEl[EXTERN]
- INTEGER*2 MouGetEventMask[EXTERN]
- INTEGER*2 MouSetEventMask[EXTERN]
-
- C structure for MouGet/SetScaleFact()
- STRUCTURE/SCALEFACT/
- INTEGER*2 rowScale
- INTEGER*2 colScale
- END STRUCTURE
-
- INTEGER*2 MouGetScaleFact[EXTERN]
- INTEGER*2 MouSetScaleFact[EXTERN]
- INTEGER*2 MouOpen[EXTERN]
- INTEGER*2 MouClose[EXTERN]
-
- C structure for MouRemovePtr()
- STRUCTURE/NOPTRRECT/
- INTEGER*2 row
- INTEGER*2 col
- INTEGER*2 cRow
- INTEGER*2 cCol
- END STRUCTURE
-
- INTEGER*2 MouRemovePtr[EXTERN]
- INTEGER*2 MouDrawPtr[EXTERN]
-
- INTEGER*2 MOU_NODRAW, MOU_DRAW, MOU_MICKEYS, MOU_PELS
- PARAMETER (MOU_NODRAW =#0001)
- PARAMETER (MOU_DRAW =#0000)
- PARAMETER (MOU_MICKEYS =#0002)
- PARAMETER (MOU_PELS =#0000)
-
- INTEGER*2 MouSetDevStatus[EXTERN]
- INTEGER*2 MouInitReal[EXTERN]
- INTEGER*2 MouSynch[EXTERN]
-
- $ENDIF ! INCL_MOU
-