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.

72 lines
2.2 KiB

  1. // File: debug.h
  2. // Debug Zones (depends on order of strings in debug.cpp)
  3. #ifndef _DEBUG_H_
  4. #define _DEBUG_H_
  5. #define ZONE_API 0x0001 // General API output
  6. #define ZONE_REFCOUNT 0x0002 // Object reference counts
  7. #define ZONE_MANAGER 0x0004 // INmManager
  8. #define ZONE_CALL 0x0008 // INmCall
  9. #define ZONE_CONFERENCE 0x0010 // INmConference
  10. #define ZONE_MEMBER 0x0020 // INmMember
  11. #define ZONE_AV 0x0040 // INmAudio/Video
  12. #define ZONE_FT 0x0080 // INmFileTransfer
  13. #define ZONE_SYSINFO 0x0100 // INmSysInfo
  14. #define ZONE_OBJECTS 0x0200 // General object create/destruction
  15. #define ZONE_DC 0x0400 // Data Channel
  16. #define iZONE_API 0
  17. #define iZONE_REFCOUNT 1
  18. #define iZONE_MANAGER 2
  19. #define iZONE_CALL 3
  20. #define iZONE_CONFERENCE 4
  21. #define iZONE_MEMBER 5
  22. #define iZONE_AV 6
  23. #define iZONE_FT 7
  24. #define iZONE_SYSINFO 8
  25. #define iZONE_OBJECTS 9
  26. #define iZONE_DC 10
  27. #ifdef DEBUG
  28. VOID DbgInitZones(void);
  29. VOID DbgFreeZones(void);
  30. VOID DbgMsgApi(PSTR pszFormat,...);
  31. VOID DbgMsgRefCount(PSTR pszFormat,...);
  32. VOID DbgMsgManager(PSTR pszFormat,...);
  33. VOID DbgMsgCall(PSTR pszFormat,...);
  34. VOID DbgMsgMember(PSTR pszFormat,...);
  35. VOID DbgMsgAV(PSTR pszFormat,...);
  36. VOID DbgMsgFT(PSTR pszFormat,...);
  37. VOID DbgMsgSysInfo(PSTR pszFormat,...);
  38. VOID DbgMsgDc(PSTR pszFormat,...);
  39. VOID DbgMsg(int iZone, PSTR pszFormat,...);
  40. #else // no debug messages
  41. inline void WINAPI DbgMsgNop(LPCTSTR, ...) { }
  42. #define DbgMsgApi 1 ? (void)0 : ::DbgMsgNop
  43. #define DbgMsgRefCount 1 ? (void)0 : ::DbgMsgNop
  44. #define DbgMsgManager 1 ? (void)0 : ::DbgMsgNop
  45. #define DbgMsgCall 1 ? (void)0 : ::DbgMsgNop
  46. #define DbgMsgMember 1 ? (void)0 : ::DbgMsgNop
  47. #define DbgMsgAV 1 ? (void)0 : ::DbgMsgNop
  48. #define DbgMsgFT 1 ? (void)0 : ::DbgMsgNop
  49. #define DbgMsgSysInfo 1 ? (void)0 : ::DbgMsgNop
  50. #define DbgMsgDc 1 ? (void)0 : ::DbgMsgNop
  51. inline void WINAPI DbgMsgZoneNop(UINT, LPCTSTR, ...) { }
  52. #define DbgMsg 1 ? (void) 0 : ::DbgMsgZoneNop
  53. #define DbgInitZones()
  54. #define DbgFreeZones()
  55. #endif
  56. #define ApiDebugMsg(s) DbgMsgApi s
  57. #endif // _DEBUG_H_