Windows-Server-2003/inetsrv/iis/setup/osrc/log.h

37 lines
744 B
C++

#include "stdafx.h"
#include "resource.h"
// Stuff for logfile
LPWSTR MakeWideStrFromAnsi(LPSTR psz);
void MakePath(LPTSTR lpPath);
void AddPath(LPTSTR szPath, LPCTSTR szName );
CString AddPath(CString szPath, LPCTSTR szName );
class MyLogFile
{
protected:
// for our log file
TCHAR m_szLogFileName[MAX_PATH];
BOOL m_bDisplayTimeStamp;
BOOL m_bDisplayPreLineInfo;
HANDLE m_hFile;
public:
TCHAR m_szLogFileName_Full[MAX_PATH];
MyLogFile();
~MyLogFile();
TCHAR m_szLogPreLineInfo[100];
TCHAR m_szLogPreLineInfo2[100];
BOOL m_bFlushLogToDisk;
int LogFileCreate(TCHAR * lpLogFileName);
int LogFileClose();
void LogFileTimeStamp();
void LogFileWrite(TCHAR * pszFormatString, ...);
};