Source code of Windows XP (NT5)
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.

74 lines
1.9 KiB

  1. /******************************************************************************
  2. Copyright (c) 1999 Microsoft Corporation
  3. Module Name:
  4. Debug.h
  5. Abstract:
  6. This file contains the declaration of debugging stuff.
  7. Revision History:
  8. Davide Massarenti (dmassare) 10/31/99
  9. created
  10. ******************************************************************************/
  11. #if !defined(__INCLUDED___PCH___DEBUG_H___)
  12. #define __INCLUDED___PCH___DEBUG_H___
  13. #ifdef DEBUG
  14. #undef HSS_PERFORMANCEDUMP
  15. #define HSS_PERFORMANCEDUMP
  16. #endif
  17. #define DEBUG_PERF_BASIC 0x00000001
  18. #define DEBUG_PERF_PROTOCOL 0x00000002
  19. #define DEBUG_PERF_PROTOCOL_READ 0x00000004
  20. #define DEBUG_PERF_MARS 0x00000008
  21. #define DEBUG_PERF_EVENTS_IN 0x00000010
  22. #define DEBUG_PERF_EVENTS_OUT 0x00000020
  23. #define DEBUG_PERF_PROXIES 0x00000040
  24. #define DEBUG_PERF_QUERIES 0x00000080
  25. #define DEBUG_PERF_CACHE_L1 0x00000100
  26. #define DEBUG_PERF_CACHE_L2 0x00000200
  27. #define DEBUG_PERF_HELPSVC 0x00000400
  28. #define DEBUG_PERF_HELPHOST 0x00000800
  29. #ifdef HSS_PERFORMANCEDUMP
  30. void DEBUG_AppendPerf( DWORD mode, LPCSTR szMessageFmt, ... );
  31. void DEBUG_AppendPerf( DWORD mode, LPCWSTR szMessageFmt, ... );
  32. void DEBUG_DumpPerf ( LPCWSTR szFile );
  33. #else
  34. inline void DEBUG_AppendPerf( DWORD mode, LPCSTR szMessageFmt, ... ) {};
  35. inline void DEBUG_AppendPerf( DWORD mode, LPCWSTR szMessageFmt, ... ) {};
  36. inline void DEBUG_DumpPerf( LPCWSTR szFile ) {};
  37. #endif
  38. ////////////////////////////////////////////////////////////////////////////////
  39. #ifdef DEBUG
  40. void DebugLog( LPCSTR szMessageFmt, ... );
  41. void DebugLog( LPCWSTR szMessageFmt, ... );
  42. #else
  43. inline void DebugLog( LPCSTR szMessageFmt, ... ) {}
  44. inline void DebugLog( LPCWSTR szMessageFmt, ... ) {}
  45. #endif
  46. void WindowDetours_Setup ();
  47. void WindowDetours_Remove();
  48. /////////////////////////////////////////////////////////////////////////////
  49. #endif // !defined(__INCLUDED___PCH___DEBUG_H___)