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.

64 lines
1.0 KiB

  1. /*++
  2. Copyright (c) 1997-1999 Microsoft Corporation
  3. Module Name:
  4. blbdbg.h
  5. Abstract:
  6. Definitions for some debugging support soutines.
  7. Author:
  8. Mu Han (muhan) 1-May-1997
  9. Changes:
  10. copied muhan's file from userdir and got rid of the read ptr/ write ptr methods
  11. B.Rajeev (rajeevb) 10-Oct-1997
  12. --*/
  13. #ifndef __REND_DEBUG__
  14. #define __REND_DEBUG__
  15. #define FAIL 1
  16. #define WARN 2
  17. #define INFO 3
  18. #define TRCE 4
  19. #define ELSE 5
  20. #ifdef SDPDBG
  21. #include <Rtutils.h>
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25. void DbgPrt(IN int dwDbgLevel, IN LPCTSTR DbgMessage, IN ...);
  26. BOOL SDPLogRegister(LPCTSTR szName);
  27. void SDPLogDeRegister();
  28. #define DBGOUT(arg) DbgPrt arg
  29. #ifdef __cplusplus
  30. }
  31. #endif
  32. #define DBGOUT(arg) DbgPrt arg
  33. #define SDPLOGREGISTER(arg) SDPLogRegister(arg)
  34. #define SDPLOGDEREGISTER() SDPLogDeRegister()
  35. #else // SDPDBG
  36. #define DBGOUT(arg)
  37. #define SDPLOGREGISTER(arg)
  38. #define SDPLOGDEREGISTER()
  39. #endif // SDPDBG
  40. #endif // __REND_DEBUG__