windows-nt/Source/XPSP1/NT/admin/controls/smonctrl/logsrc.h

81 lines
1.6 KiB
C
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
/*++
Copyright (C) 1996-2000 Microsoft Corporation
Module Name:
logsrc.h
Abstract:
<abstract>
--*/
#ifndef _LOGSRC_H_
#define _LOGSRC_H_
#include <inole.h>
#include "isysmon.h"
//
// Persistant data structure
//
typedef struct {
INT m_nPathLength;
} LOGFILE_DATA;
class CSysmonControl;
class CImpIDispatch;
//
// LogFileItem Class
//
class CLogFileItem : public ILogFileItem
{
public:
CLogFileItem ( CSysmonControl *pCtrl );
virtual ~CLogFileItem ( void );
//IUnknown members
STDMETHODIMP QueryInterface(REFIID, PPVOID);
STDMETHODIMP_(ULONG) AddRef(void);
STDMETHODIMP_(ULONG) Release(void);
// ILogFileItem methods
STDMETHODIMP get_Path ( BSTR* ) ;
// methods not exposed by ILogFileItem interface
static HRESULT NullItemToStream(LPSTREAM pIStream, INT iVersMaj, INT iVersMin);
HRESULT Initialize ( LPCTSTR pszPath, CLogFileItem** ppListHead );
HRESULT SaveToPropertyBag (
IPropertyBag*,
INT iIndex,
INT iVersMaj,
INT iVersMin );
HRESULT SaveToStream(LPSTREAM pIStream, BOOL fWildCard, INT iVersMaj, INT iVersMin);
CLogFileItem* Next ( void );
void SetNext ( CLogFileItem* );
LPCWSTR GetPath ( void );
private:
class CLogFileItem* m_pNextItem;
CSysmonControl* m_pCtrl;
ULONG m_cRef;
CImpIDispatch* m_pImpIDispatch;
LPWSTR m_szPath;
};
typedef CLogFileItem* PCLogFileItem;
#endif // _LOGSRC_H_