Source code of Windows XP (NT5)
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.

35 lines
1.1 KiB

  1. /****************************************************************************
  2. Module name : SendKeys.H
  3. Description : Include File for SendKeys utility functions.
  4. *****************************************************************************/
  5. #ifndef _INC_SENDKEYS
  6. #define _INC_SENDKEYS /* #defined if SendKeys.h has been included */
  7. #ifdef __cplusplus
  8. extern "C" { /* Assume C declarations for C++ */
  9. #endif /* __cplusplus */
  10. #define ARRAY_LEN(Array) (sizeof(Array) / sizeof(Array[0]))
  11. #define INRANGE(low, val, high) ((low <= val) && (val <= high))
  12. #define TOUPPER(Char) ((BYTE) (DWORD) AnsiUpper((LPSTR) MAKEINTRESOURCE(Char)))
  13. // ************************ Function Prototypes ******************************
  14. typedef enum {
  15. SK_NOERROR, SK_MISSINGCLOSEBRACE, SK_INVALIDKEY,
  16. SK_MISSINGCLOSEPAREN, SK_INVALIDCOUNT, SK_STRINGTOOLONG,
  17. SK_CANTINSTALLHOOK
  18. } SENDKEYSERR;
  19. SENDKEYSERR WINAPI _export SendKeys (LPCSTR szKeys);
  20. SENDKEYSERR WINAPI VMSendKeys (LPCSTR szKeys);
  21. void WINAPI PostVirtualKeyEvent (BYTE bVirtKey, BOOL fUp);
  22. #ifdef __cplusplus
  23. } /* End of extern "C" { */
  24. #endif /* __cplusplus */
  25. #endif /* _INC_SENDKEYS */