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.

52 lines
1.2 KiB

  1. #ifndef REF
  2. //+-------------------------------------------------------------------------
  3. //
  4. // Microsoft Windows
  5. // Copyright (C) Microsoft Corporation, 1992 - 1992.
  6. //
  7. // File: logfile.cxx
  8. //
  9. // Contents: Logfile protoype functions for DocFile
  10. //
  11. // Classes: None.
  12. //
  13. // Functions:
  14. //
  15. // History: 24-Sep-92 PhilipLa Created.
  16. //
  17. //--------------------------------------------------------------------------
  18. #ifndef __LOGFILE_HXX__
  19. #define __LOGFILE_HXX__
  20. #if DBG == 1
  21. #define LOGFILESTARTFLAGS RSF_CREATE|RSF_OPENCREATE
  22. #define LOGFILEDFFLAGS DF_READWRITE
  23. #define LOGFILENAME L"logfile.txt"
  24. #define DEB_LOG 0x02000000
  25. #define DEB_LOWLOG 0x04000000
  26. SCODE _FreeLogFile(void);
  27. void OutputLogfileMessage(char const *format, ...);
  28. extern WCHAR *_spwcsLogFile;
  29. #define olLog(x) if (olInfoLevel & DEB_LOG) OutputLogfileMessage x
  30. #define olLowLog(x) if (olInfoLevel & DEB_LOWLOG) OutputLogfileMessage x
  31. #define FreeLogFile() _FreeLogFile()
  32. #else // !DBG
  33. #define olLog(x)
  34. #define olLowLog(x)
  35. #define FreeLogFile() S_OK
  36. #endif // DBG
  37. #endif //__LOGFILE_HXX__
  38. #else
  39. #define olLog(x)
  40. #define olLowLog(x)
  41. #define FreeLogFile() S_OK
  42. #endif //!REF