windows-nt/Source/XPSP1/NT/admin/hmonitor/hmagent/pqde.h
2020-09-26 16:20:57 +08:00

38 lines
956 B
C++

//***************************************************************************
//
// PQDE.H
//
// Module: HEALTHMON SERVER AGENT
//
// Purpose: CPolledQueryDataCollector class to do WMI instance collection.
//
// Copyright (c)1999 Microsoft Corporation, All Rights Reserved
//
//***************************************************************************
#if !defined( __PQDE_H )
#define __PQDE_H
#include "datacltr.h"
class CPolledQueryDataCollector : public CDataCollector
{
public:
CPolledQueryDataCollector();
virtual ~CPolledQueryDataCollector();
LPTSTR m_szQuery;
IEnumWbemClassObject *m_pEnumObjs;
HRESULT LoadInstanceFromMOF(IWbemClassObject* pObj, CDataGroup *pParentDG, LPTSTR pszParentGUID, BOOL bModifyPass=FALSE);
private:
BOOL CollectInstance(void);
BOOL CollectInstanceSemiSync(void);
BOOL ProcessObjects(ULONG uReturned, IWbemClassObject **apObj);
BOOL CleanupSemiSync(void);
BOOL EnumDone(void);
};
#endif // __PQDE_H