windows-nt/Source/XPSP1/NT/inetsrv/iis/setup/osrc/log.h

37 lines
744 B
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
#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, ...);
};