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.
 
 
 
 
 
 

79 lines
2.3 KiB

/*++
Copyright (C) 1998-1999 Microsoft Corporation
Module Name:
smctrqry.h
Abstract:
Class definitions for the counter log query.
--*/
#ifndef _CLASS_SMCTRQRY_
#define _CLASS_SMCTRQRY_
#include "smlogqry.h"
class CSmCounterLogQuery : public CSmLogQuery
{
// constructor/destructor
public:
CSmCounterLogQuery( CSmLogService* );
virtual ~CSmCounterLogQuery( void );
// public methods
public:
virtual DWORD Open ( const CString& rstrName, HKEY hKeyQuery, BOOL bReadOnly);
virtual DWORD Close ( void );
virtual DWORD SyncWithRegistry( void );
virtual BOOL GetLogTime(PSLQ_TIME_INFO pTimeInfo, DWORD dwFlags);
virtual BOOL SetLogTime(PSLQ_TIME_INFO pTimeInfo, const DWORD dwFlags);
virtual BOOL GetDefaultLogTime(SLQ_TIME_INFO& rTimeInfo, DWORD dwFlags);
virtual DWORD GetLogType( void );
LPCWSTR GetFirstCounter( void );
LPCWSTR GetNextCounter( void );
VOID ResetCounterList( void );
BOOL AddCounter(LPCWSTR szCounterPath);
DWORD TranslateCounterListToLocale();
virtual HRESULT LoadFromPropertyBag ( IPropertyBag*, IErrorLog* );
virtual HRESULT SaveToPropertyBag ( IPropertyBag*, BOOL fSaveAllProps );
virtual HRESULT LoadCountersFromPropertyBag ( IPropertyBag*, IErrorLog* );
virtual HRESULT SaveCountersToPropertyBag ( IPropertyBag* );
virtual DWORD TranslateMSZCounterList(
LPWSTR pszCounterList,
LPWSTR pBuffer,
LPDWORD pdwBufferSize,
BOOL bFlag);
virtual CSmCounterLogQuery* CastToCounterLogQuery ( void ) { return this; };
// protected methods
protected:
virtual DWORD UpdateRegistry();
// private member variables
private:
LPWSTR m_szNextCounter;
DWORD m_dwCounterListLength; // in chars including MSZ null
// Registry Values
LPWSTR mr_szCounterList;
BOOL m_bCounterListInLocale;
};
typedef CSmCounterLogQuery SLCTRQUERY;
typedef CSmCounterLogQuery* PSLCTRQUERY;
#endif //_CLASS_SMCTRQRY_