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.

65 lines
1.3 KiB

  1. /*
  2. declarations for Win95 tracing facility
  3. */
  4. #ifndef __TRACEW95__
  5. #define __TRACEW95__
  6. #if defined( _DEBUG ) ||defined( DEBUG ) || defined( DBG )
  7. #define DBPRINTF OutputDebugStringW95
  8. // redefine all the MFC macros to point to us
  9. #undef TRACE
  10. #define TRACE OutputDebugStringW95
  11. #undef TRACE0
  12. #define TRACE0 OutputDebugStringW95
  13. #undef TRACE1
  14. #define TRACE1 OutputDebugStringW95
  15. #undef TRACE2
  16. #define TRACE2 OutputDebugStringW95
  17. #undef TRACE3
  18. #define TRACE3 OutputDebugStringW95
  19. // redefine OutputDebugString so that it works with
  20. // API calls
  21. #undef OutputDebugString
  22. #define OutputDebugString OutputDebugStringW95
  23. // function declarations
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27. void OutputDebugStringW95( LPCTSTR lpOutputString, ... );
  28. void SpewOpenFile(LPCTSTR pszSpewFile);
  29. void SpewToFile( LPCTSTR lpOutputString, ...);
  30. void SpewCloseFile();
  31. #ifdef __cplusplus
  32. }
  33. #endif
  34. #else
  35. // avoid warning:
  36. // error C4353: nonstandard extension used: constant 0 as function expression.
  37. // Use '__noop' function intrinsic instead
  38. #define DBPRINTF __noop
  39. #define SpewOpenFile __noop
  40. #define SpewToFile __noop
  41. #define SpewCloseFile __noop
  42. #endif // _DEBUG || DEBUG || DBG
  43. #endif //__TRACEW95__