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.

37 lines
956 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 COMMA TEXT(',')
  20. #define NULLC TEXT('\0')
  21. #define BLANK TEXT(' ')
  22. #define DIMENSION(a) (sizeof(a) / sizeof(a[0]))
  23. #define MAX_BUF_SIZE 4096
  24. VOID __cdecl WriteToCon(TCHAR *fmt, ...);
  25. extern TCHAR ConBuf[MAX_BUF_SIZE + 1];
  26. #define GenOutput(h, fmt) \
  27. {_snwprintf(ConBuf, DIMENSION(ConBuf), fmt); \
  28. DosPutMessageW(h, ConBuf, FALSE);}
  29. #define GenOutput1(h, fmt, a1) \
  30. {_snwprintf(ConBuf, DIMENSION(ConBuf), fmt, a1); \
  31. DosPutMessageW(h, ConBuf, FALSE);}