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
820 B

  1. #define DOT TEXT('.')
  2. #define MINUS TEXT('-')
  3. #define PLUS TEXT('+')
  4. #define ASTERISK TEXT('*')
  5. #define AMPERSAND TEXT('&')
  6. #define PERCENT TEXT('%')
  7. #define DOLLAR TEXT('$')
  8. #define POUND TEXT('#')
  9. #define ATSIGN TEXT('@')
  10. #define BANG TEXT('!')
  11. #define TILDA TEXT('~')
  12. #define SLASH TEXT('/')
  13. #define PIPE TEXT('|')
  14. #define BACKSLASH TEXT('\\')
  15. #define RETURN TEXT('\r')
  16. #define NEWLINE TEXT('\n')
  17. #define TAB TEXT('\t')
  18. #define COLON TEXT(':')
  19. #define NULLC TEXT('\0')
  20. #define BLANK TEXT(' ')
  21. #define DIMENSION(a) (sizeof(a) / sizeof(a[0]))
  22. VOID __cdecl WriteToCon(TCHAR *fmt, ...);
  23. extern TCHAR ConBuf[];
  24. #define GenOutput(h, fmt) \
  25. {swprintf(ConBuf, fmt); \
  26. DosPutMessageW(h, ConBuf, FALSE);}
  27. #define GenOutput1(h, fmt, a1) \
  28. { \
  29. swprintf(ConBuf, fmt, a1); \
  30. DosPutMessageW(h, ConBuf, FALSE);}