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.

54 lines
1.8 KiB

  1. #ifndef _PARTICIPATINGNODE_INCLUDED_
  2. #define _PARTICIPATINGNODE_INCLUDED_
  3. #include "WLBS_Root.h"
  4. ////////////////////////////////////////////////////////////////////////////////
  5. //
  6. // class CWLBS_ParticipatingNode
  7. //
  8. // Purpose: This class executes IWbemServices methods on behalf of the provider
  9. // and supports the MOF node class.
  10. //
  11. //
  12. ////////////////////////////////////////////////////////////////////////////////
  13. class CWLBS_ParticipatingNode : public CWlbs_Root
  14. {
  15. public:
  16. CWLBS_ParticipatingNode(CWbemServices* a_pNameSpace, IWbemObjectSink* a_pResponseHandler);
  17. ~CWLBS_ParticipatingNode();
  18. static CWlbs_Root* Create(
  19. CWbemServices* a_pNameSpace,
  20. IWbemObjectSink* a_pResponseHandler
  21. );
  22. HRESULT GetInstance(
  23. const ParsedObjectPath* a_pParsedPath,
  24. long a_lFlags = 0,
  25. IWbemContext* a_pIContex = NULL
  26. );
  27. HRESULT EnumInstances(
  28. BSTR a_bstrClass = NULL,
  29. long a_lFlags = 0,
  30. IWbemContext* a_pIContex = NULL
  31. );
  32. private:
  33. //data
  34. CWLBS_Node* m_pNode;
  35. //methods
  36. void FillWbemInstance ( CWlbsClusterWrapper* pCluster,
  37. IWbemClassObject* a_pWbemInstance,
  38. WLBS_RESPONSE* a_pResponse );
  39. void FindInstance( IWbemClassObject** a_ppWbemInstance,
  40. const ParsedObjectPath* a_pParsedPath );
  41. //void FindAllInstances( WLBS_RESPONSE** a_ppResponse,
  42. // long& a_nNumNodes );
  43. };
  44. #endif //_PARTICIPATINGNODE_INCLUDED_