home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / AutoPC / apcsdk10.exe / data1.cab / Emulation_Include_Files / keypad.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-05-13  |  2.0 KB  |  66 lines

  1. //+----------------------------------------------------------------------------
  2. // 
  3. // File:        keypad.h
  4. //
  5. // Copyight:    (c) 1997, Microsoft Corporation
  6. //              All Rights Reserved
  7. //              Infomation Contained Herein Is Propprietary and Confidential
  8. //
  9. // Contents:    Face plate bus driver defines & function prototypes
  10. //
  11. //-----------------------------------------------------------------------------
  12.  
  13. #include <apcmsg.h>
  14.  
  15. #ifndef _KEYPAD_H_
  16. #define _KEYPAD_H_
  17.  
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21.  
  22. // Telephony device key codes.
  23. #define VK_STAR         VK_F1
  24. #define VK_POUND        VK_F2
  25. #define VK_SENDCALL        VK_F3
  26. #define VK_ENDCALL        VK_F4
  27. #define VK_MUTE            VK_F5
  28. #define VK_VOLUMEUP        VK_F6
  29. #define VK_VOLUMEDOWN    VK_F7
  30. #define VK_REDIAL        VK_F8
  31. #define VK_STORE        VK_F9
  32. #define VK_RECALL        VK_F10
  33. #define VK_HOLD            VK_F11
  34. #define VK_CONFERENCE    VK_F12
  35. #define VK_TRANSFER        VK_F13
  36. #define VK_HOOK            VK_F14
  37. #define VK_CALLBACK        VK_F15
  38. #define VK_SPEAKER        VK_F16
  39.  
  40. #define VK_SPEECH       VK_F24
  41. #define VK_AUDIO        VK_F23
  42. // VK_F17-VK_F24 are available for definition of other keys on a platform specific basis.
  43. // VK_NUMPAD0 - VK_NUMPAD9 will be the digits on the telephones numeric pad
  44.  
  45.  
  46. // IoControl for translating a VKEY to a UNICODE character.
  47. // pInBuf points to the Virtual key value, nInBufSize contains the KeyState value
  48. // pOutBuf points to a buffer to receive the unicode character. If pBytesReturned is
  49. // not NULL then it will be filled with the count of bytes filled (the size of a unicode character)
  50. #define KBDI_VKEYTOUNICODE      0x2000
  51.  
  52. // IoControl to Generate a pseudo keypad event such as a key down or key up.
  53. // pInBuf points to the Virtual key value, nInBufSize contains the KeyState value
  54. #define KBDI_SETEVENT           0x2002
  55.  
  56. // Key down/up messages from keypad driver to client application.
  57. #define WM_REMOTE_KEYDOWN       APC_SYS_START
  58. #define WM_REMOTE_KEYUP         APC_SYS_START+1
  59.  
  60. #ifdef __cplusplus
  61. }
  62. #endif
  63.  
  64. #endif // _KEYPAD_H_
  65.  
  66.