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.

112 lines
2.9 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1999-2000 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // CClusterNetInterface.h
  7. //
  8. // Implementation File:
  9. // CClusterNetInterface.cpp
  10. //
  11. // Description:
  12. // Definition of the CClusterNetInterface class.
  13. //
  14. // Author:
  15. // Henry Wang (HenryWa) 24-AUG-1999
  16. //
  17. // Notes:
  18. //
  19. //////////////////////////////////////////////////////////////////////////////
  20. #pragma once
  21. //////////////////////////////////////////////////////////////////////////////
  22. // Include Files
  23. //////////////////////////////////////////////////////////////////////////////
  24. #include "ProvBase.h"
  25. //////////////////////////////////////////////////////////////////////////////
  26. // Forward Declarations
  27. //////////////////////////////////////////////////////////////////////////////
  28. class CClusterNetInterface;
  29. //////////////////////////////////////////////////////////////////////////////
  30. //++
  31. //
  32. // class CClusterNetInterface
  33. //
  34. // Description:
  35. // Provider Implement for cluster Node
  36. //
  37. //--
  38. //////////////////////////////////////////////////////////////////////////////
  39. class CClusterNetInterface : public CProvBase
  40. {
  41. //
  42. // constructor
  43. //
  44. public:
  45. CClusterNetInterface::CClusterNetInterface(
  46. LPCWSTR pwszNameIn,
  47. CWbemServices * pNamespaceIn
  48. );
  49. //
  50. // methods
  51. //
  52. public:
  53. virtual SCODE EnumInstance(
  54. long lFlagsIn,
  55. IWbemContext * pCtxIn,
  56. IWbemObjectSink * pHandlerIn
  57. );
  58. virtual SCODE GetObject(
  59. CObjPath & rObjPathIn,
  60. long lFlagsIn,
  61. IWbemContext * pCtxIn,
  62. IWbemObjectSink * pHandlerIn
  63. );
  64. virtual SCODE ExecuteMethod(
  65. CObjPath & rObjPathIn,
  66. WCHAR * pwszMethodNameIn,
  67. long lFlagIn,
  68. IWbemClassObject * pParamsIn,
  69. IWbemObjectSink * pHandlerIn
  70. );
  71. virtual SCODE PutInstance(
  72. CWbemClassObject & rInstToPutIn,
  73. long lFlagIn,
  74. IWbemContext * pCtxIn,
  75. IWbemObjectSink * pHandlerIn
  76. );
  77. virtual SCODE DeleteInstance(
  78. CObjPath & rObjPathIn,
  79. long lFlagIn,
  80. IWbemContext * pCtxIn,
  81. IWbemObjectSink * pHandlerIn
  82. );
  83. static CProvBase * S_CreateThis(
  84. LPCWSTR pwszNameIn,
  85. CWbemServices * pNamespaceIn,
  86. DWORD // dwEnumTypeIn
  87. );
  88. protected:
  89. static const SPropMapEntryArray * RgGetPropMap( void );
  90. void ClusterToWMI(
  91. HNETINTERFACE hNetInterfaceIn,
  92. IWbemObjectSink * pHandlerIn,
  93. LPCWSTR pwszNameIn
  94. );
  95. }; //*** class CClusterNetInterface