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.

49 lines
994 B

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name
  4. confdbg.h
  5. Description
  6. Defines functions used for debugging
  7. Note
  8. Revised based on msplog.h by
  9. Qianbo Huai (qhuai) Apr 5 2000
  10. --*/
  11. #ifndef _CONFDBG_H
  12. #define _CONFDBG_H
  13. #include <rtutils.h>
  14. #define FAIL ((DWORD)0x00010000 | TRACE_USE_MASK)
  15. #define WARN ((DWORD)0x00020000 | TRACE_USE_MASK)
  16. #define INFO ((DWORD)0x00040000 | TRACE_USE_MASK)
  17. #define TRCE ((DWORD)0x00080000 | TRACE_USE_MASK)
  18. #define ELSE ((DWORD)0x00100000 | TRACE_USE_MASK)
  19. BOOL DBGRegister(LPCTSTR szName);
  20. void DBGDeRegister();
  21. void DBGPrint(DWORD dwDbgLevel, LPCSTR DbgMessage, ...);
  22. #ifdef TSPLOG
  23. #define DBGREGISTER(arg) DBGRegister(arg)
  24. #define DBGDEREGISTER() DBGDeRegister()
  25. #define DBGOUT(arg) DBGPrint arg
  26. #else
  27. #define DBGREGISTER(arg)
  28. #define DBGDEREGISTER()
  29. #define DBGOUT(arg)
  30. #endif // TSPLOG
  31. #endif // _CONFDBG_H