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

  1. #ifndef _ASCLOGC_HXX_
  2. #define _ASCLOGC_HXX_
  3. class CASCLOG :
  4. public CLogFileCtrl,
  5. public CLogScript,
  6. public CComCoClass<CASCLOG, &CLSID_ASCLOG> {
  7. public:
  8. CASCLOG();
  9. virtual VOID FormNewLogFileName( IN LPSYSTEMTIME pstNow);
  10. virtual BOOL FormatLogBuffer(
  11. IN IInetLogInformation *pLogObj,
  12. IN LPSTR pBuf,
  13. IN DWORD *pcbSize,
  14. OUT SYSTEMTIME *pSystemTime
  15. );
  16. inline
  17. virtual DWORD QueryLogFormat() {return(INET_LOG_FORMAT_INTERNET_STD);}
  18. virtual LPCSTR QueryNoPeriodPattern( );
  19. BEGIN_COM_MAP(CASCLOG)
  20. COM_INTERFACE_ENTRY(ILogPlugin)
  21. COM_INTERFACE_ENTRY(ILogScripting)
  22. COM_INTERFACE_ENTRY(IDispatch)
  23. END_COM_MAP()
  24. protected:
  25. ~CASCLOG();
  26. virtual HRESULT
  27. ReadFileLogRecord(
  28. IN FILE *fpLogFile,
  29. IN LPINET_LOGLINE pInetLogLine,
  30. IN PCHAR pszLogLine,
  31. IN DWORD dwLogLineSize
  32. );
  33. virtual HRESULT
  34. WriteFileLogRecord(
  35. IN FILE *fpLogFile,
  36. IN ILogScripting *pILogScripting,
  37. IN bool fWriteHeader
  38. );
  39. private:
  40. CASCLOG(const CASCLOG &);
  41. void operator=(const CASCLOG &);
  42. ASCLOG_DATETIME_CACHE m_DateTimeCache;
  43. BOOL ConvertASCDateToVariantDate(PCHAR szDateString, PCHAR szTimeString, DATE * pDateTime);
  44. };
  45. #endif