Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
867 B

  1. #ifndef _KEYEVENT_H
  2. #define _KEYEVENT_H
  3. #include "sapilayr.h"
  4. #include "kes.h"
  5. class CSapiIMX;
  6. class CSpTask;
  7. #define TF_MOD_WIN 0x00010000
  8. extern const KESPRESERVEDKEY g_prekeyList[];
  9. extern KESPRESERVEDKEY g_prekeyList_Mode[];
  10. // Speech tip itself Keyevent sink class derived from the basic CKeyEventSink
  11. class CSptipKeyEventSink : public CKeyEventSink
  12. {
  13. public:
  14. CSptipKeyEventSink (KESCALLBACK pfnCallback, void *pv) : CKeyEventSink(pfnCallback, pv)
  15. {
  16. }
  17. CSptipKeyEventSink(KESCALLBACK pfnCallback, KESPREKEYCALLBACK pfnPrekeyCallback, void *pv) : CKeyEventSink(pfnCallback, pfnPrekeyCallback, pv)
  18. {
  19. }
  20. ~CSptipKeyEventSink()
  21. {
  22. }
  23. HRESULT _RegisterEx(ITfThreadMgr *ptim, TfClientId tid, const KESPRESERVEDKEY *pprekey);
  24. };
  25. #endif // _KEYEVENT_H