home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / odtlktv4.zip / ODTLKT / TOOLKIT / INC / VKBD.INC < prev    next >
Text File  |  1995-12-04  |  2KB  |  91 lines

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