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.

38 lines
1.0 KiB

  1. /* File: D:\WACKER\tdll\chars.h (Created: 30-Nov-1993)
  2. *
  3. * Copyright 1994 by Hilgraeve Inc. -- Monroe, MI
  4. * All rights reserved
  5. *
  6. * $Revision: 3 $
  7. * $Date: 10/11/99 5:31p $
  8. */
  9. #if !defined(INCL_CHARS)
  10. #define INCL_CHARS
  11. /*
  12. * Keystrokes are passed in the following manner:
  13. *
  14. * If the VIRTUAL_KEY flag is clear, then the lower byte of the value is the
  15. * displayable (usually ASCII) code for the character
  16. *
  17. * If the VIRTUAL_KEY flag is set, then the lower byte ov the value is the
  18. * WINDOWs VK_* code for the key that was pressed. In addition, the flags
  19. * for ALT_KEY, CTRL_KEY, and SHIFT_KEY are set to the correct values.
  20. */
  21. #define VIRTUAL_KEY 0x00800000
  22. #define ALT_KEY 0x00010000
  23. #define CTRL_KEY 0x00020000
  24. #define SHIFT_KEY 0x00040000
  25. #define EXTENDED_KEY 0x00080000
  26. KEY_T TranslateToKey(const LPMSG pmsg);
  27. // NumLock query helper returns true if NumLock is on, false if NumLock is off.
  28. // mrw:10/6/99
  29. //
  30. #define QUERY_NUMLOCK() ((GetKeyState(VK_NUMLOCK) & 0x01) ? TRUE : FALSE)
  31. #endif