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
708 B

  1. /*
  2. * LCTrace.h
  3. *
  4. * Author: BreenH
  5. *
  6. * Tracing code for the licensing core.
  7. */
  8. #ifndef __LC_LCTRACE_H__
  9. #define __LC_LCTRACE_H__
  10. #ifdef DBG
  11. /*
  12. * Constants
  13. */
  14. #define LCTRACETYPE_NONE ((ULONG)(0x0))
  15. #define LCTRACETYPE_API ((ULONG)(0x1))
  16. #define LCTRACETYPE_INFO ((ULONG)(0x2))
  17. #define LCTRACETYPE_WARNING ((ULONG)(0x4))
  18. #define LCTRACETYPE_ERROR ((ULONG)(0x8))
  19. #define LCTRACETYPE_ALL ((ULONG)(0xFFFF))
  20. /*
  21. * Function Prototypes
  22. */
  23. VOID
  24. TraceInitialize(
  25. VOID
  26. );
  27. VOID __cdecl
  28. TracePrint(
  29. ULONG ulTraceLevel,
  30. LPCSTR pFormat,
  31. ...
  32. );
  33. #define TRACEPRINT(x) TracePrint x;
  34. #else
  35. #define TRACEPRINT(x)
  36. #endif
  37. #endif