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.

58 lines
1.0 KiB

  1. // fsdiag.h
  2. #ifndef _FSDIAG2_H_
  3. #define _FSDIAG2_H_
  4. #define MULTI_LEVEL_ZONES
  5. #include <mlzdbg.h>
  6. #if defined(_DEBUG)
  7. VOID T120DiagnosticCreate(VOID);
  8. VOID T120DiagnosticDestroy(VOID);
  9. #define TRACE_OUT_EX(z,s) (MLZ_TraceZoneEnabled(z) || MLZ_TraceZoneEnabled(MLZ_FILE_ZONE)) ? (MLZ_TraceOut s) : 0
  10. #else
  11. #define T120DiagnosticCreate()
  12. #define T120DiagnosticDestroy()
  13. #define DEBUG_FILEZONE(z)
  14. #define TRACE_OUT_EX(z,s)
  15. #endif // _DEBUG
  16. #ifdef _DEBUG
  17. enum
  18. {
  19. ZONE_T120_T123PSTN = BASE_ZONE_INDEX,
  20. };
  21. extern UINT MLZ_FILE_ZONE;
  22. #define DEBUG_FILEZONE(z) static UINT MLZ_FILE_ZONE = (z)
  23. #endif // _DEBUG
  24. #endif // _FSDIAG_
  25. // lonchanc: this must be outside the _FSDIAG_ protection.
  26. #if defined(_DEBUG) && defined(INIT_DBG_ZONE_DATA)
  27. static const PSTR c_apszDbgZones[] =
  28. {
  29. "T.123", // debug zone module name
  30. DEFAULT_ZONES
  31. TEXT("T123 PSTN"), // ZONE_T120_T123PSTN
  32. };
  33. UINT MLZ_FILE_ZONE = ZONE_T120_T123PSTN;
  34. #endif // _DEBUG && INIT_DBG_ZONE_DATA