Source code of Windows XP (NT5)
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.

37 lines
956 B

  1. //***************************************************************************
  2. //
  3. // PQDE.H
  4. //
  5. // Module: HEALTHMON SERVER AGENT
  6. //
  7. // Purpose: CPolledQueryDataCollector class to do WMI instance collection.
  8. //
  9. // Copyright (c)1999 Microsoft Corporation, All Rights Reserved
  10. //
  11. //***************************************************************************
  12. #if !defined( __PQDE_H )
  13. #define __PQDE_H
  14. #include "datacltr.h"
  15. class CPolledQueryDataCollector : public CDataCollector
  16. {
  17. public:
  18. CPolledQueryDataCollector();
  19. virtual ~CPolledQueryDataCollector();
  20. LPTSTR m_szQuery;
  21. IEnumWbemClassObject *m_pEnumObjs;
  22. HRESULT LoadInstanceFromMOF(IWbemClassObject* pObj, CDataGroup *pParentDG, LPTSTR pszParentGUID, BOOL bModifyPass=FALSE);
  23. private:
  24. BOOL CollectInstance(void);
  25. BOOL CollectInstanceSemiSync(void);
  26. BOOL ProcessObjects(ULONG uReturned, IWbemClassObject **apObj);
  27. BOOL CleanupSemiSync(void);
  28. BOOL EnumDone(void);
  29. };
  30. #endif // __PQDE_H