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.

40 lines
1.1 KiB

  1. #ifndef __CARDMOD__DEBUG__H
  2. #define __CARDMOD__DEBUG__H
  3. #include <windows.h>
  4. #include <dsysdbg.h>
  5. //
  6. // Debug Support
  7. //
  8. // This uses the debug routines from dsysdbg.h
  9. // Debug output will only be available in chk
  10. // bits.
  11. //
  12. DECLARE_DEBUG2(Cardmod)
  13. #define DEB_ERROR 0x00000001
  14. #define DEB_WARN 0x00000002
  15. #define DEB_TRACE 0x00000004
  16. #define DEB_TRACE_FUNC 0x00000008
  17. #define DEB_TRACE_MEM 0x00000010
  18. #define DEB_TRACE_TRANSMIT 0x00000020
  19. #define DEB_TRACE_PROXY 0x00000040
  20. extern DEBUG_KEY MyDebugKeys[];
  21. extern void I_DebugPrintBytes(LPWSTR pwszHdr, BYTE *pb, DWORD cbSize);
  22. #if DBG
  23. #define DebugLog(x) CardmodDebugPrint x
  24. #define DebugPrintBytes(x, y, z) (I_DebugPrintBytes(x, y, z))
  25. #else
  26. #define DebugLog(x)
  27. #define DebugPrintBytes(x, y, z)
  28. #endif
  29. #define LOG_BEGIN_PROXY(x) \
  30. { DebugLog((DEB_TRACE_PROXY, "%s\n", #x)); }
  31. #endif