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.

58 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. myLOG.h
  5. Abstract:
  6. Definitions for logging support.
  7. Author:
  8. Mu Han (muhan) 1-April-1997
  9. --*/
  10. #ifndef _PHONESPLOG_H_
  11. #define _PHONESPLOG_H_
  12. #ifdef PHONESPLOG
  13. #include <rtutils.h>
  14. #define PHONESP_ERROR ((DWORD)0x00010000 | TRACE_USE_MASK)
  15. #define PHONESP_WARN ((DWORD)0x00020000 | TRACE_USE_MASK)
  16. #define PHONESP_INFO ((DWORD)0x00040000 | TRACE_USE_MASK)
  17. #define PHONESP_TRACE ((DWORD)0x00080000 | TRACE_USE_MASK)
  18. #define PHONESP_EVENT ((DWORD)0x00100000 | TRACE_USE_MASK)
  19. BOOL NTAPI LogRegisterDebugger(LPCTSTR szName);
  20. BOOL NTAPI LogRegisterTracing(LPCTSTR szName);
  21. void NTAPI LogDeRegisterDebugger();
  22. void NTAPI LogDeRegisterTracing();
  23. void NTAPI LogPrint(IN DWORD dwDbgLevel, IN LPCSTR DbgMessage, IN ...);
  24. #define LOGREGISTERDEBUGGER(arg) LogRegisterDebugger(arg)
  25. #define LOGREGISTERTRACING(arg) LogRegisterTracing(arg)
  26. #define LOGDEREGISTERDEBUGGER() LogDeRegisterDebugger()
  27. #define LOGDEREGISTERTRACING() LogDeRegisterTracing()
  28. #define LOG(arg) LogPrint arg
  29. #else // PHONESPLOG
  30. #define LOGREGISTERDEBUGGER(arg)
  31. #define LOGREGISTERTRACING(arg)
  32. #define LOGDEREGISTERDEBUGGER()
  33. #define LOGDEREGISTERTRACING()
  34. #define LOG(arg)
  35. #endif // PHONESPLOG
  36. #define DECLARE_LOG_ADDREF_RELEASE(x)
  37. #define CMSPComObject CComObject
  38. #endif // _PHONESPLOG_H_