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.

41 lines
768 B

  1. #include <Windows.h>
  2. #include <io.h>
  3. #include <stdio.h>
  4. #include <time.h>
  5. #include <direct.h>
  6. #include <prsht.h>
  7. #include <commctrl.h>
  8. #include <regstr.h>
  9. #include <objbase.h>
  10. #include <winnetwk.h>
  11. #include <tchar.h>
  12. #include <shlobj.h>
  13. #include <shellapi.h>
  14. #include "stdafx.h"
  15. #include "resource.h"
  16. // Stuff for logfile
  17. void MakePath(LPTSTR lpPath);
  18. void AddPath(LPTSTR szPath, LPCTSTR szName );
  19. class MyLogFile
  20. {
  21. protected:
  22. // for our log file
  23. TCHAR m_szLogFileName[MAX_PATH];
  24. // logfile2
  25. HANDLE m_hFile;
  26. public:
  27. TCHAR m_szLogFileName_Full[MAX_PATH];
  28. MyLogFile();
  29. ~MyLogFile();
  30. int LogFileCreate(TCHAR * lpLogFileName);
  31. int LogFileClose();
  32. void LogFileWrite(TCHAR * pszFormatString, ...);
  33. };