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.
 
 
 
 
 
 

61 lines
1.7 KiB

#ifndef _ASCLOGC_HXX_
#define _ASCLOGC_HXX_
class CASCLOG :
public CLogFileCtrl,
public CLogScript,
public CComCoClass<CASCLOG, &CLSID_ASCLOG> {
public:
CASCLOG();
virtual VOID FormNewLogFileName( IN LPSYSTEMTIME pstNow);
virtual BOOL FormatLogBuffer(
IN IInetLogInformation *pLogObj,
IN LPSTR pBuf,
IN DWORD *pcbSize,
OUT SYSTEMTIME *pSystemTime
);
inline
virtual DWORD QueryLogFormat() {return(INET_LOG_FORMAT_INTERNET_STD);}
virtual LPCSTR QueryNoPeriodPattern( );
BEGIN_COM_MAP(CASCLOG)
COM_INTERFACE_ENTRY(ILogPlugin)
COM_INTERFACE_ENTRY(ILogScripting)
COM_INTERFACE_ENTRY(IDispatch)
END_COM_MAP()
protected:
~CASCLOG();
virtual HRESULT
ReadFileLogRecord(
IN FILE *fpLogFile,
IN LPINET_LOGLINE pInetLogLine,
IN PCHAR pszLogLine,
IN DWORD dwLogLineSize
);
virtual HRESULT
WriteFileLogRecord(
IN FILE *fpLogFile,
IN ILogScripting *pILogScripting,
IN bool fWriteHeader
);
private:
CASCLOG(const CASCLOG &);
void operator=(const CASCLOG &);
ASCLOG_DATETIME_CACHE m_DateTimeCache;
BOOL ConvertASCDateToVariantDate(PCHAR szDateString, PCHAR szTimeString, DATE * pDateTime);
};
#endif