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.

68 lines
1.3 KiB

  1. /*++
  2. Copyright (C) 1996-2000 Microsoft Corporation
  3. Module Name:
  4. logsrc.h
  5. Abstract:
  6. <abstract>
  7. --*/
  8. #ifndef _LOGSRC_H_
  9. #define _LOGSRC_H_
  10. //
  11. // Persistant data structure
  12. //
  13. typedef struct {
  14. INT m_nPathLength;
  15. } LOGFILE_DATA;
  16. class CSysmonControl;
  17. class CImpIDispatch;
  18. //
  19. // LogFileItem Class
  20. //
  21. class CLogFileItem : public ILogFileItem
  22. {
  23. public:
  24. CLogFileItem ( CSysmonControl *pCtrl );
  25. virtual ~CLogFileItem ( void );
  26. //IUnknown members
  27. STDMETHODIMP QueryInterface(REFIID, PPVOID);
  28. STDMETHODIMP_(ULONG) AddRef(void);
  29. STDMETHODIMP_(ULONG) Release(void);
  30. // ILogFileItem methods
  31. STDMETHODIMP get_Path ( BSTR* ) ;
  32. HRESULT Initialize ( LPCWSTR pszPath, CLogFileItem** ppListHead );
  33. CLogFileItem* Next ( void );
  34. void SetNext ( CLogFileItem* );
  35. LPCWSTR GetPath ( void );
  36. private:
  37. class CLogFileItem* m_pNextItem;
  38. CSysmonControl* m_pCtrl;
  39. ULONG m_cRef;
  40. CImpIDispatch* m_pImpIDispatch;
  41. LPWSTR m_szPath;
  42. };
  43. typedef CLogFileItem* PCLogFileItem;
  44. #endif // _LOGSRC_H_