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.

62 lines
1.3 KiB

  1. /*++
  2. Copyright (C) 1998-1999 Microsoft Corporation
  3. Module Name:
  4. smtracsv.h
  5. Abstract:
  6. This object is used to represent the trace log query components of the
  7. sysmon log service
  8. --*/
  9. #ifndef _CLASS_SMTRACELOGSERVICE_
  10. #define _CLASS_SMTRACELOGSERVICE_
  11. #include "smlogs.h"
  12. class CSmTraceProviders;
  13. class CSmTraceLogService : public CSmLogService
  14. {
  15. friend class CSmTraceProviders;
  16. // constructor/destructor
  17. public:
  18. CSmTraceLogService();
  19. virtual ~CSmTraceLogService();
  20. // public methods
  21. public:
  22. virtual DWORD Open ( const CString& rstrMachineName );
  23. virtual DWORD Close ( void );
  24. virtual DWORD SyncWithRegistry ( PSLQUERY* ppActiveQuery = NULL );
  25. virtual PSLQUERY CreateQuery ( const CString& rstrName );
  26. virtual DWORD DeleteQuery ( PSLQUERY pQuery );
  27. virtual CSmTraceLogService* CastToTraceLogService( void ) { return this; };
  28. CSmTraceProviders* GetProviders( void );
  29. protected:
  30. virtual DWORD LoadQueries( void );
  31. private:
  32. HKEY GetMachineKey ( void )
  33. { return GetMachineRegistryKey(); };
  34. CSmTraceProviders* m_pProviders;
  35. };
  36. #endif //_CLASS_SMTRACELOGSERVICE_