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.

67 lines
2.4 KiB

  1. #ifndef _PORTRULE_INCLUDED_
  2. #define _PORTRULE_INCLUDED_
  3. #include "WLBS_Root.h"
  4. ////////////////////////////////////////////////////////////////////////////////
  5. //
  6. // class CWLBS_PortRule
  7. //
  8. // Purpose: This class executes IWbemServices methods on behalf of the provider
  9. // and supports the MOF node configuration class.
  10. //
  11. //
  12. ////////////////////////////////////////////////////////////////////////////////
  13. class CWLBS_PortRule : public CWlbs_Root
  14. {
  15. public:
  16. CWLBS_PortRule(CWbemServices* a_pNameSpace, IWbemObjectSink* a_pResponseHandler);
  17. static CWlbs_Root* Create(
  18. CWbemServices* a_pNameSpace,
  19. IWbemObjectSink* a_pResponseHandler
  20. );
  21. HRESULT GetInstance(
  22. const ParsedObjectPath* a_pParsedPath,
  23. long a_lFlags = 0,
  24. IWbemContext* a_pIContex = NULL
  25. );
  26. HRESULT DeleteInstance(
  27. const ParsedObjectPath* a_pParsedPath,
  28. long a_lFlags = 0,
  29. IWbemContext* a_pIContex = NULL
  30. );
  31. HRESULT PutInstance(
  32. IWbemClassObject* a_pInstance,
  33. long a_lFlags = 0,
  34. IWbemContext* a_pIContex = NULL
  35. );
  36. HRESULT EnumInstances(
  37. BSTR a_bstrClass = NULL,
  38. long a_lFlags = 0,
  39. IWbemContext* a_pIContex = NULL
  40. );
  41. HRESULT ExecMethod(
  42. const ParsedObjectPath* a_pParsedPath,
  43. const BSTR& a_strMethodName,
  44. long a_lFlags,
  45. IWbemContext* a_pIContex,
  46. IWbemClassObject* a_pIInParams
  47. );
  48. static void FillWbemInstance( LPCWSTR a_szClassName,
  49. CWlbsClusterWrapper* pCluster,
  50. IWbemClassObject* a_pWbemInstance,
  51. const PWLBS_PORT_RULE& a_pPortRule );
  52. private:
  53. };
  54. #endif //_PORTRULE_INCLUDED_