home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / warptlk3.zip / TOOLKIT / INC / VKBD.INC < prev    next >
Text File  |  1995-08-24  |  2KB  |  87 lines

  1. ;       SCCSID = @(#)vkbd.inc    6.1 92/03/25
  2. ;***    VKBD.INC
  3. ;
  4. ;
  5. ;       MVDM Virtual Keyboard Exported Definitions
  6. ;
  7. ;       For include file hierarchy, see MVDM.INC
  8. ;
  9. ;
  10.  
  11. ifndef INCL_NONE               ;include everything by default
  12. INCL_VKBD       EQU 1
  13. endif
  14.  
  15. ifdef  INCL_VKBD
  16. INCL_VKBDSYSREQ         EQU 1
  17. INCL_VKBDINTERFACES     EQU 1
  18. endif
  19.  
  20.  
  21.  
  22. ifdef  INCL_VKBDSYSREQ
  23.  
  24. ;***    VKBD constants
  25. ;
  26.  
  27. VKBD_NAME       EQU     "VKBD$"
  28.  
  29. ; VKBD functions for use by PMVDMP
  30. ;
  31. VKBDSYSREQ_SETACCESS    EQU     1   ;Obtain exclusive access for VDM
  32. VKBDSYSREQ_SETFOCUS     EQU     2   ;Notify VDM is gaining/losing focus
  33. VKBDSYSREQ_POSTSCAN     EQU     3   ;Send scan code (typed)
  34. VKBDSYSREQ_POSTCHAR     EQU     4   ;Send character code (pasted)
  35. VKBDSYSREQ_MAX  EQU     4
  36.  
  37.  
  38. ;***    VKBD data types
  39. ;
  40.  
  41. DefStruc ,keypkt_s                      ;kp (for VKBDSYSREQ_POSTSCAN/CHAR)
  42.     UCHAR       kp_Scan            ;scan code
  43.     UCHAR       kp_Char            ;translated char
  44.     USHORT      kp_fsState         ;shift states
  45.     USHORT      kp_fsDDFlags       ;translated flags
  46.     USHORT      kp_fsKey           ;key flags
  47. EndStruc KEYPKT
  48. DefType PKEYPKT,dd
  49. DefType PPKEYPKT,dd
  50.  
  51. DefStruc ,shiftpkt_s                    ;sp (for VKBDSYSREQ_SETFOCUS)
  52.     USHORT      fSetFocus          ;TRUE to set focus, FALSE to clear focus
  53.     USHORT      fsShift            ;PM shift states during set focus
  54.                                     ;  undefined during clear focus
  55. EndStruc SHIFTPKT
  56. DefType PSHIFTPKT,dd
  57. DefType PPSHIFTPKT,dd
  58.  
  59. endif ;INCL_VKBDSYSREQ
  60.  
  61.  
  62.  
  63. ;***    VKBD function prototypes
  64. ;
  65.  
  66. ifdef INCL_VKBDINTERFACES
  67.  
  68. DefType PFNSCRNP,dd
  69.  
  70. VDHENTRY VDHRegisterScreenProc          <PFNSCRNP>
  71. VDHENTRY VDHQueryKeyShift               <HVDM>
  72.  
  73. ;VPL Idle detection services
  74. VDHENTRY VDHWakeIdle            <HVDM>
  75. VDHENTRY VDHReportPeek          <ULONG>
  76. VDHENTRY VDHNotIdle             <VOID>
  77. VDHENTRY VDHGetBusyFlagPtr              <void>
  78.  
  79. ;requests for SVC access to VPL polling services
  80. VPL_NAME        EQU     "VPL_IDLE"
  81. VDHVPL_BUSY_ADDR        EQU     0         ;provide V86 busy byte address
  82. VDHVPL_WAIT     EQU     1         ;make VDM sleep
  83. VDHVPL_NOIDLE   EQU     2         ;Turn idle detection off
  84. VDHVPL_WAKE     EQU     3         ;Report busy activity
  85.  
  86. endif
  87.