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.

68 lines
2.2 KiB

  1. /*++
  2. Copyright (c) 1990-1998 Microsoft Corporation, All Rights Reserved
  3. Module Name:
  4. INPUT.C
  5. ++*/
  6. /**********************************************************************/
  7. #include "windows.h"
  8. #include "immdev.h"
  9. #include "fakeime.h"
  10. /**********************************************************************/
  11. /* */
  12. /* IMEKeydownHandler() */
  13. /* */
  14. /* A function which handles WM_IMEKEYDOWN */
  15. /* */
  16. /**********************************************************************/
  17. BOOL PASCAL IMEKeydownHandler( hIMC, wParam, lParam,lpbKeyState)
  18. HIMC hIMC;
  19. WPARAM wParam;
  20. LPARAM lParam;
  21. LPBYTE lpbKeyState;
  22. {
  23. WORD wVKey;
  24. switch( wVKey = ( LOWORD(wParam) & 0x00FF ) ){
  25. case VK_SHIFT:
  26. case VK_CONTROL:
  27. //goto not_proccessed;
  28. break;
  29. default:
  30. if( !DicKeydownHandler( hIMC, wVKey, lParam, lpbKeyState ) ) {
  31. // This WM_IMEKEYDOWN has actual character code in itself.
  32. #if defined(FAKEIMEM) || defined(UNICODE)
  33. AddChar( hIMC, HIWORD(wParam));
  34. #else
  35. AddChar( hIMC, (WORD)((BYTE)HIBYTE(wParam)));
  36. #endif
  37. //CharHandler( hIMC, (WORD)((BYTE)HIBYTE(wParam)), lParam );
  38. }
  39. break;
  40. }
  41. return TRUE;
  42. }
  43. /**********************************************************************/
  44. /* */
  45. /* IMEKeyupHandler() */
  46. /* */
  47. /* A function which handles WM_IMEKEYUP */
  48. /* */
  49. /**********************************************************************/
  50. BOOL PASCAL IMEKeyupHandler( hIMC, wParam, lParam ,lpbKeyState)
  51. HIMC hIMC;
  52. WPARAM wParam;
  53. LPARAM lParam;
  54. LPBYTE lpbKeyState;
  55. {
  56. return FALSE;
  57. }