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.

43 lines
1.2 KiB

  1. /*****************************************************************************\
  2. Author: Corey Morgan (coreym)
  3. Copyright (c) 1998-2000 Microsoft Corporation
  4. \*****************************************************************************/
  5. #include <wmistr.h>
  6. #include <evntrace.h>
  7. #define MAXSTR 1024
  8. #define MAXIMUM_LOGGERS 32
  9. #define PROVIDER_NAME_SMONLOG L"SysmonLog"
  10. class CSmonLog : public Provider
  11. {
  12. public:
  13. CSmonLog(LPCWSTR chsClassName, LPCWSTR lpszNameSpace);
  14. virtual ~CSmonLog();
  15. protected:
  16. virtual HRESULT EnumerateInstances(MethodContext* pMethodContext, long lFlags = 0L);
  17. virtual HRESULT GetObject(CInstance* pInstance, long lFlags = 0L);
  18. virtual HRESULT PutInstance(const CInstance& Instance, long lFlags = 0L);
  19. virtual HRESULT ExecMethod( const CInstance& Instance,
  20. const BSTR bstrMethodName,
  21. CInstance *pInParams,
  22. CInstance *pOutParams,
  23. long lFlags = 0L
  24. );
  25. HRESULT LoadPropertyValues(
  26. CInstance *pInstance,
  27. LPWSTR strName
  28. );
  29. private:
  30. HRESULT SetRunAs( const CInstance &Instance, CInstance *pInParams );
  31. };