home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / winbase / winnt / pop3 / debug.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-10-05  |  1.2 KB  |  54 lines

  1.  
  2. /******************************************************************************\
  3. *       This is a part of the Microsoft Source Code Samples.
  4. *       Copyright (C) 1992-1997 Microsoft Corporation.
  5. *       All rights reserved. 
  6. *       This source code is only intended as a supplement to 
  7. *       Microsoft Development Tools and/or WinHelp documentation.
  8. *       See these sources for detailed information regarding the 
  9. *       Microsoft samples programs.
  10. \******************************************************************************/
  11.  
  12. //+---------------------------------------------------------------------------
  13. //
  14. //  File:       debug.h
  15. //
  16. //  Contents:
  17. //
  18. //  Classes:
  19. //
  20. //  Functions:
  21. //
  22. //----------------------------------------------------------------------------
  23.  
  24.  
  25. #ifndef __DEBUG_H__
  26. #define __DEBUG_H__
  27.  
  28. #if DBG
  29.  
  30. extern  DWORD   PopInfoLevel;
  31.  
  32. #define DebugLog(x) LogEvent x
  33.  
  34.  
  35. void    LogEvent(long, const char *, ...);
  36. void    InitDebugSupport(void);
  37.  
  38. #define DEB_ERROR           0x00000001
  39. #define DEB_WARN            0x00000002
  40. #define DEB_TRACE           0x00000004
  41. #define DEB_TRACE_PROT      0x00000008
  42.  
  43. #else
  44.  
  45. #define DebugLog(x)
  46. #define InitDebugSupport()
  47.  
  48.  
  49. #endif
  50.  
  51.  
  52.  
  53. #endif // __DEBUG_H__
  54.