windows-nt/Source/XPSP1/NT/sdktools/trace/evntrprv/smlogprv.h
2020-09-26 16:20:57 +08:00

44 lines
1.2 KiB
C++

/*****************************************************************************\
Author: Corey Morgan (coreym)
Copyright (c) 1998-2000 Microsoft Corporation
\*****************************************************************************/
#include <wmistr.h>
#include <evntrace.h>
#define MAXSTR 1024
#define MAXIMUM_LOGGERS 32
#define PROVIDER_NAME_SMONLOG L"SysmonLog"
class CSmonLog : public Provider
{
public:
CSmonLog(LPCWSTR chsClassName, LPCWSTR lpszNameSpace);
virtual ~CSmonLog();
protected:
virtual HRESULT EnumerateInstances(MethodContext* pMethodContext, long lFlags = 0L);
virtual HRESULT GetObject(CInstance* pInstance, long lFlags = 0L);
virtual HRESULT PutInstance(const CInstance& Instance, long lFlags = 0L);
virtual HRESULT ExecMethod( const CInstance& Instance,
const BSTR bstrMethodName,
CInstance *pInParams,
CInstance *pOutParams,
long lFlags = 0L
);
HRESULT LoadPropertyValues(
CInstance *pInstance,
LPWSTR strName
);
private:
HRESULT SetRunAs( const CInstance &Instance, CInstance *pInParams );
};