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.

92 lines
1.6 KiB

  1. #include "precomp.h"
  2. //
  3. // IM.C
  4. // Backport Input Manager
  5. //
  6. // Copyright(c) Microsoft 1997-
  7. //
  8. extern "C"
  9. {
  10. #include <asthk.h>
  11. }
  12. #define MLZ_FILE_ZONE ZONE_INPUT
  13. //
  14. // OSI_InstallControlledHooks()
  15. //
  16. BOOL WINAPI OSI_InstallControlledHooks(BOOL fEnable, BOOL fDesktop)
  17. {
  18. ASSERT(g_hInstAs16);
  19. return(OSIInstallControlledHooks16(fEnable, fDesktop));
  20. }
  21. //
  22. // OSI_InjectMouseEvent()
  23. //
  24. void WINAPI OSI_InjectMouseEvent
  25. (
  26. DWORD flags,
  27. LONG x,
  28. LONG y,
  29. DWORD mouseData,
  30. DWORD dwExtraInfo
  31. )
  32. {
  33. ASSERT(g_hInstAs16);
  34. TRACE_OUT(("Before MOUSE inject: %08lx, %08lx %08lx",
  35. flags, mouseData, dwExtraInfo));
  36. OSIInjectMouseEvent16(flags, x, y, mouseData, dwExtraInfo);
  37. TRACE_OUT(("After MOUSE inject"));
  38. }
  39. //
  40. // OSI_InjectKeyboardEvent()
  41. //
  42. void WINAPI OSI_InjectKeyboardEvent
  43. (
  44. DWORD flags,
  45. WORD vkCode,
  46. WORD scanCode,
  47. DWORD dwExtraInfo
  48. )
  49. {
  50. ASSERT(g_hInstAs16);
  51. TRACE_OUT(("Before KEY inject: %04lx, {%04x, %04x}, %04lx",
  52. flags, vkCode, scanCode, dwExtraInfo));
  53. OSIInjectKeyboardEvent16(flags, vkCode, scanCode, dwExtraInfo);
  54. TRACE_OUT(("After KEY inject"));
  55. }
  56. //
  57. // OSI_InjectCtrlAltDel()
  58. //
  59. void WINAPI OSI_InjectCtrlAltDel(void)
  60. {
  61. // BUGBUG do we want to support ctl-alt-del injection on Win9x?
  62. ERROR_OUT(("Attempt to inject Ctrl+Alt+Del"));
  63. }
  64. //
  65. // OSI_DesktopSwitch()
  66. //
  67. void WINAPI OSI_DesktopSwitch(UINT from, UINT to)
  68. {
  69. // Nothing to do, should never happen.
  70. ERROR_OUT(("Can't desktop switch on Win95"));
  71. }