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.

50 lines
818 B

  1. /*++
  2. Copyright (C) 1999- Microsoft Corporation
  3. Module Name:
  4. trace.h
  5. Abstract:
  6. This module declares software tracing stuff
  7. Author:
  8. Dave Parsons (davepar)
  9. Revision History:
  10. --*/
  11. #ifndef TRACE__H_
  12. #define TRACE__H_
  13. //
  14. // Software tracing setup
  15. //
  16. #define WPP_CONTROL_GUIDS \
  17. WPP_DEFINE_CONTROL_GUID(Regular,(09D38237,078D,4767,BF90,9227E75562DB), \
  18. WPP_DEFINE_BIT(Error) \
  19. WPP_DEFINE_BIT(Warning) \
  20. WPP_DEFINE_BIT(Trace) \
  21. WPP_DEFINE_BIT(Entry) \
  22. WPP_DEFINE_BIT(Exit) \
  23. WPP_DEFINE_BIT(Dump) \
  24. )
  25. class CTraceProc {
  26. private:
  27. CHAR m_szMessage[MAX_PATH];
  28. public:
  29. CTraceProc(CHAR *pszMsg);
  30. ~CTraceProc();
  31. };
  32. VOID DoTraceHresult(HRESULT hr);
  33. #endif // TRACE__H_