windows-nt/Source/XPSP1/NT/admin/hmonitor/hmagent/pqde.h

38 lines
956 B
C
Raw Normal View History

2020-09-26 03:20:57 -05:00
//***************************************************************************
//
// 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