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.

75 lines
2.3 KiB

  1. // Keys.H
  2. //
  3. // Functions exported from narrhook.dll
  4. //
  5. __declspec(dllexport) BOOL InitKeys(HWND hwnd);
  6. __declspec(dllexport) BOOL UninitKeys(void);
  7. __declspec(dllexport) BOOL InitMSAA(void);
  8. __declspec(dllexport) BOOL UnInitMSAA(void);
  9. __declspec(dllexport) void BackToApplication(void);
  10. __declspec(dllexport) void GetCurrentText(LPTSTR psz, int cch);
  11. __declspec(dllexport) BOOL GetTrackSecondary();
  12. __declspec(dllexport) BOOL GetTrackCaret();
  13. __declspec(dllexport) BOOL GetTrackInputFocus();
  14. __declspec(dllexport) int GetEchoChars();
  15. __declspec(dllexport) BOOL GetAnnounceWindow();
  16. __declspec(dllexport) BOOL GetAnnounceMenu();
  17. __declspec(dllexport) BOOL GetAnnouncePopup();
  18. __declspec(dllexport) BOOL GetAnnounceToolTips();
  19. __declspec(dllexport) BOOL GetReviewStyle();
  20. __declspec(dllexport) int GetReviewLevel();
  21. __declspec(dllexport) void SetCurrentText(LPCTSTR);
  22. __declspec(dllexport) void SetTrackSecondary(BOOL);
  23. __declspec(dllexport) void SetTrackCaret(BOOL);
  24. __declspec(dllexport) void SetTrackInputFocus(BOOL);
  25. __declspec(dllexport) void SetEchoChars(int);
  26. __declspec(dllexport) void SetAnnounceWindow(BOOL);
  27. __declspec(dllexport) void SetAnnounceMenu(BOOL);
  28. __declspec(dllexport) void SetAnnouncePopup(BOOL);
  29. __declspec(dllexport) void SetAnnounceToolTips(BOOL);
  30. __declspec(dllexport) void SetReviewStyle(BOOL);
  31. __declspec(dllexport) void SetReviewLevel(int);
  32. // this is in other.cpp it is used to avoid pulling in C runtime
  33. __declspec(dllexport) LPTSTR lstrcatn(LPTSTR pDest, LPTSTR pSrc, int maxDest);
  34. //
  35. // typedefs
  36. //
  37. typedef void (*FPACTION)(int nOption);
  38. typedef struct tagHOTK
  39. {
  40. WPARAM keyVal; // Key value, like F1
  41. int status;
  42. FPACTION lFunction; // address of function to get info
  43. int nOption; // Extra data to send to function
  44. } HOTK;
  45. //
  46. // defines
  47. //
  48. #define TIMER_ID 1001
  49. #define MSR_CTRL 1
  50. #define MSR_SHIFT 2
  51. #define MSR_ALT 4
  52. #define MSR_KEYUP 1
  53. #define MSR_KEYDOWN 2
  54. #define MSR_KEYLEFT 3
  55. #define MSR_KEYRIGHT 4
  56. //
  57. // Function Prototypes
  58. //
  59. void ProcessWinEvent(DWORD event, HWND hwndMsg, LONG idObject,
  60. LONG idChild, DWORD idThread, DWORD dwmsEventTime);
  61. // Macros and function prototypes for debugging
  62. #include "..\..\inc\w95trace.h"
  63. extern DWORD g_tidMain; // ROBSI: 10-10-99 (defined in keys.cpp)