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.

53 lines
1.5 KiB

  1. /******************************************************************
  2. SNetScal.h -- WBEM provider class declaration
  3. MODULE:
  4. DhcpProv.dll
  5. DESCRIPTION:
  6. Contains the declaration of the DHCP_Subnet_Scalar class and
  7. the indices definitions for its static table of manageable objects.
  8. REVISION:
  9. 08/03/98 - created
  10. ******************************************************************/
  11. #include "Props.h" // needed for CDHCP_Property definition
  12. #ifndef _ANETRGN_H
  13. #define _ANETRGN_H
  14. #define PROP_ANetRange_Subnet L"Subnet"
  15. #define PROP_ANetRange_Range L"Range"
  16. class CDHCP_AssociationSubnetToRange : public Provider
  17. {
  18. private:
  19. DWORD m_dwRangeType;
  20. protected:
  21. // Reading Functions
  22. virtual HRESULT EnumerateInstances(MethodContext* pMethodContext, long lFlags = 0L);
  23. virtual HRESULT GetObject(CInstance* pInstance, long lFlags = 0L);
  24. virtual HRESULT ExecQuery(MethodContext *pMethodContext, CFrameworkQuery& Query, long lFlags = 0L);
  25. // Writing Functions
  26. virtual HRESULT PutInstance(const CInstance& Instance, long lFlags = 0L);
  27. virtual HRESULT DeleteInstance(const CInstance& Instance, long lFlags = 0L);
  28. // Other Functions
  29. virtual HRESULT ExecMethod( const CInstance& Instance,
  30. const BSTR bstrMethodName,
  31. CInstance *pInParams,
  32. CInstance *pOutParams,
  33. long lFlags = 0L );
  34. public:
  35. // Constructor/destructor
  36. CDHCP_AssociationSubnetToRange(const CHString& chsClassName, LPCSTR lpszNameSpace, DWORD dwRangeType);
  37. virtual ~CDHCP_AssociationSubnetToRange();
  38. };
  39. #endif