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.

46 lines
1.8 KiB

  1. //--------------------------------------------------------------------
  2. // printlib - header
  3. // Copyright (C) Microsoft Corporation, 2001
  4. //
  5. // Created by: Duncan Bryce (duncanb), 11-11-2001
  6. //
  7. // Various print routines
  8. //
  9. #ifndef PRINTLIB_H
  10. #define PRINTLIB_H
  11. #ifndef DBG
  12. #define DebugWPrintf0(wszFormat)
  13. #define DebugWPrintf1(wszFormat,a)
  14. #define DebugWPrintf2(wszFormat,a,b)
  15. #define DebugWPrintf3(wszFormat,a,b,c)
  16. #define DebugWPrintf4(wszFormat,a,b,c,d)
  17. #define DebugWPrintf5(wszFormat,a,b,c,d,e)
  18. #define DebugWPrintf6(wszFormat,a,b,c,d,e,f)
  19. #define DebugWPrintf7(wszFormat,a,b,c,d,e,f,g)
  20. #define DebugWPrintf8(wszFormat,a,b,c,d,e,f,g,h)
  21. #define DebugWPrintf9(wszFormat,a,b,c,d,e,f,g,h,i)
  22. #else //DBG
  23. #define DebugWPrintf0(wszFormat) DebugWPrintf_((wszFormat))
  24. #define DebugWPrintf1(wszFormat,a) DebugWPrintf_((wszFormat),(a))
  25. #define DebugWPrintf2(wszFormat,a,b) DebugWPrintf_((wszFormat),(a),(b))
  26. #define DebugWPrintf3(wszFormat,a,b,c) DebugWPrintf_((wszFormat),(a),(b),(c))
  27. #define DebugWPrintf4(wszFormat,a,b,c,d) DebugWPrintf_((wszFormat),(a),(b),(c),(d))
  28. #define DebugWPrintf5(wszFormat,a,b,c,d,e) DebugWPrintf_((wszFormat),(a),(b),(c),(d),(e))
  29. #define DebugWPrintf6(wszFormat,a,b,c,d,e,f) DebugWPrintf_((wszFormat),(a),(b),(c),(d),(e),(f))
  30. #define DebugWPrintf7(wszFormat,a,b,c,d,e,f,g) DebugWPrintf_((wszFormat),(a),(b),(c),(d),(e),(f),(g))
  31. #define DebugWPrintf8(wszFormat,a,b,c,d,e,f,g,h) DebugWPrintf_((wszFormat),(a),(b),(c),(d),(e),(f),(g),(h))
  32. #define DebugWPrintf9(wszFormat,a,b,c,d,e,f,g,h,i) DebugWPrintf_((wszFormat),(a),(b),(c),(d),(e),(f),(g),(h),(i))
  33. void DebugWPrintf_(const WCHAR * wszFormat, ...);
  34. #endif //DBG
  35. HRESULT InitializeConsoleOutput();
  36. VOID DisplayMsg(DWORD dwSource, DWORD dwMsgId, ... );
  37. #endif // PRINTLIB_H