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.

61 lines
1.3 KiB

  1. //+--------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (c) Microsoft Corporation 2000
  6. //
  7. // File: debug.h
  8. //
  9. // Contents: debugging information for SSP
  10. //
  11. // Helper functions:
  12. //
  13. // History: KDamour 15Mar00 created
  14. //
  15. //---------------------------------------------------------------------
  16. #ifndef NTDIGEST_DEBUG_H
  17. #define NTDIGEST_DEBUG_H
  18. #ifdef SECURITY_KERNEL
  19. // Context Signatures
  20. #define WDIGEST_CONTEXT_SIGNATURE 'TSGD'
  21. #if DBG
  22. extern "C"
  23. {
  24. void KsecDebugOut(ULONG, const char *, ...);
  25. }
  26. #define DebugLog(x) KsecDebugOut x
  27. #else // DBG
  28. #define DebugLog(x)
  29. #endif // DBG
  30. #else // SECURITY_KERNEL
  31. #include "dsysdbg.h"
  32. DECLARE_DEBUG2(Digest);
  33. #if DBG
  34. #define DebugLog(x) DigestDebugPrint x
  35. #else // DBG
  36. #define DebugLog(x)
  37. #endif // DBG
  38. #endif // SECURITY_KERNEL
  39. #define DEB_ERROR 0x00000001
  40. #define DEB_WARN 0x00000002
  41. #define DEB_TRACE 0x00000004
  42. #define DEB_TRACE_ASC 0x00000008
  43. #define DEB_TRACE_ISC 0x00000010
  44. #define DEB_TRACE_LSA 0x00000020
  45. #define DEB_TRACE_USER 0x00000040
  46. #define DEB_TRACE_FUNC 0x00000080
  47. #define DEB_TRACE_MEM 0x00000100
  48. #define TRACE_STUFF 0x00000200
  49. #endif /* NTDIGEST_DEBUG_H */