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.

45 lines
961 B

  1. /*++
  2. Module Name
  3. bgdebug.h
  4. Description
  5. Defines functions used for debugging
  6. Note
  7. Revised based on msplog.h
  8. --*/
  9. #ifndef _BGDEBUG_H
  10. #define _BGDEBUG_H
  11. #include <rtutils.h>
  12. #define BG_ERROR ((DWORD)0x00010000 | TRACE_USE_MASK)
  13. #define BG_WARN ((DWORD)0x00020000 | TRACE_USE_MASK)
  14. #define BG_INFO ((DWORD)0x00040000 | TRACE_USE_MASK)
  15. #define BG_TRACE ((DWORD)0x00080000 | TRACE_USE_MASK)
  16. #define BG_EVENT ((DWORD)0x00100000 | TRACE_USE_MASK)
  17. BOOL BGLogRegister(LPCTSTR szName);
  18. void BGLogDeRegister();
  19. void BGLogPrint(DWORD dwDbgLevel, LPCSTR DbgMessage, ...);
  20. #ifdef BGDEBUG
  21. #define BGLOGREGISTER(arg) BGLogRegister(arg)
  22. #define BGLOGDEREGISTER() BGLogDeRegister()
  23. #define BGLOG(arg) BGLogPrint arg
  24. #else // BGDEBUG
  25. #define BGLOGREGISTER(arg)
  26. #define BGLOGDEREGISTER()
  27. #define BGLOG(arg)
  28. #endif // BGDEBUG
  29. #endif // _BGDEBUG_H_