windows-nt/Source/XPSP1/NT/inetsrv/iis/setup/util/migrate/log.h
2020-09-26 16:20:57 +08:00

30 lines
539 B
C++

#ifndef _MYLOGFILE_H_
#define _MYLOGFILE_H_
class MyLogFile
{
protected:
// for our log file
TCHAR m_szLogFileName[MAX_PATH];
TCHAR m_szLogFileName_Full[MAX_PATH];
BOOL m_bDisplayTimeStamp;
BOOL m_bDisplayPreLineInfo;
// logfile2
HANDLE m_hFile;
public:
MyLogFile();
~MyLogFile();
TCHAR m_szLogPreLineInfo[100];
TCHAR m_szLogPreLineInfo2[100];
int LogFileCreate(TCHAR * lpLogFileName);
int LogFileClose();
void LogFileTimeStamp();
void LogFileWrite(TCHAR * pszFormatString, ...);
};
#endif