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.

51 lines
1.2 KiB

  1. /*++
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. Module Name:
  4. MSPLOG.h
  5. Abstract:
  6. Definitions for logging support.
  7. --*/
  8. #ifndef _MSPLOG_H_
  9. #define _MSPLOG_H_
  10. #ifdef MSPLOG
  11. #include <rtutils.h>
  12. #define MSP_ERROR ((DWORD)0x00010000 | TRACE_USE_MASK)
  13. #define MSP_WARN ((DWORD)0x00020000 | TRACE_USE_MASK)
  14. #define MSP_INFO ((DWORD)0x00040000 | TRACE_USE_MASK)
  15. #define MSP_TRACE ((DWORD)0x00080000 | TRACE_USE_MASK)
  16. #define MSP_EVENT ((DWORD)0x00100000 | TRACE_USE_MASK)
  17. BOOL NTAPI MSPLogRegister(LPCTSTR szName);
  18. void NTAPI MSPLogDeRegister();
  19. void NTAPI LogPrint(IN DWORD dwDbgLevel, IN LPCSTR DbgMessage, IN ...);
  20. #define MSPLOGREGISTER(arg) MSPLogRegister(arg)
  21. #define MSPLOGDEREGISTER() MSPLogDeRegister()
  22. extern BOOL g_bMSPBaseTracingOn;
  23. #define LOG(arg) g_bMSPBaseTracingOn?LogPrint arg:0
  24. #else // MSPLOG
  25. #define MSPLOGREGISTER(arg)
  26. #define MSPLOGDEREGISTER()
  27. #define LOG(arg)
  28. #endif // MSPLOG
  29. #define DECLARE_LOG_ADDREF_RELEASE(x)
  30. #define CMSPComObject CComObject
  31. #endif // _MSPLOG_H_