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.

36 lines
780 B

  1. #include "stdafx.h"
  2. #include "resource.h"
  3. // Stuff for logfile
  4. LPWSTR MakeWideStrFromAnsi(LPSTR psz);
  5. void MakePath(LPTSTR lpPath);
  6. void AddPath(LPTSTR szPath, LPCTSTR szName );
  7. CString AddPath(CString szPath, LPCTSTR szName );
  8. class MyLogFile
  9. {
  10. protected:
  11. // for our log file
  12. TCHAR m_szLogFileName[MAX_PATH];
  13. BOOL m_bDisplayTimeStamp;
  14. BOOL m_bDisplayPreLineInfo;
  15. HANDLE m_hFile;
  16. public:
  17. TCHAR m_szLogFileName_Full[MAX_PATH];
  18. MyLogFile();
  19. ~MyLogFile();
  20. TCHAR m_szLogPreLineInfo[100];
  21. TCHAR m_szLogPreLineInfo2[100];
  22. BOOL m_bFlushLogToDisk;
  23. int LogFileCreate(TCHAR * lpLogFileName);
  24. int LogFileClose();
  25. void LogFileTimeStamp();
  26. void LogFileWrite(TCHAR * pszFormatString, ...);
  27. };