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.

29 lines
568 B

  1. #ifndef _MYLOGFILE_H_
  2. #define _MYLOGFILE_H_
  3. class MyLogFile
  4. {
  5. protected:
  6. // for our log file
  7. TCHAR m_szLogFileName[MAX_PATH];
  8. TCHAR m_szLogFileName_Full[MAX_PATH];
  9. BOOL m_bDisplayTimeStamp;
  10. BOOL m_bDisplayPreLineInfo;
  11. // logfile2
  12. HANDLE m_hFile;
  13. public:
  14. MyLogFile();
  15. ~MyLogFile();
  16. TCHAR m_szLogPreLineInfo[100];
  17. TCHAR m_szLogPreLineInfo2[100];
  18. int LogFileCreate(TCHAR * lpLogFileName);
  19. int LogFileClose();
  20. void LogFileTimeStamp();
  21. void LogFileWrite(TCHAR * pszFormatString, ...);
  22. };
  23. #endif