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.

61 lines
2.1 KiB

  1. /******************************************************************
  2. LsScal.h -- WBEM provider class declaration
  3. MODULE:
  4. DhcpProv.dll
  5. DESCRIPTION:
  6. Contains the declaration of the DHCP_Reservation class and
  7. the indices definitions for its static table of manageable objects.
  8. REVISION:
  9. 08/14/98 - created
  10. ******************************************************************/
  11. #include "Props.h" // needed for CDHCP_Property definition
  12. #include "LsScal.h"
  13. #ifndef _RESSCAL_H
  14. #define _RESSCAL_H
  15. // indices for the DHCP_Reservation_Property static table (defined in ResScal.cpp)
  16. //#define IDX_Res_Subnet 0
  17. //#define IDX_Res_Address 1
  18. //#define IDX_Res_UniqueClientIdentifier 2
  19. #define IDX_Res_ReservationType 0
  20. // external definition for the static table of manageable objects (properties)
  21. extern const CDHCP_Property DHCP_Reservation_Property[];
  22. // the number of entries into the DHCP_Subnet_Property static table
  23. #define NUM_RESERVATION_PROPERTIES (sizeof(DHCP_Reservation_Property)/sizeof(CDHCP_Property))
  24. class CDHCP_Reservation : public CDHCP_Lease
  25. {
  26. private:
  27. // Loader function for the properties values.
  28. BOOL LoadInstanceProperties(CInstance* pInstance);
  29. protected:
  30. // Reading Functions
  31. virtual HRESULT EnumerateInstances(MethodContext* pMethodContext, long lFlags = 0L);
  32. virtual HRESULT GetObject(CInstance* pInstance, long lFlags = 0L);
  33. virtual HRESULT ExecQuery(MethodContext *pMethodContext, CFrameworkQuery& Query, long lFlags = 0L);
  34. // Writing Functions
  35. virtual HRESULT PutInstance(const CInstance& Instance, long lFlags = 0L);
  36. virtual HRESULT DeleteInstance(const CInstance& Instance, long lFlags = 0L);
  37. // Other Functions
  38. virtual HRESULT ExecMethod( const CInstance& Instance,
  39. const BSTR bstrMethodName,
  40. CInstance *pInParams,
  41. CInstance *pOutParams,
  42. long lFlags = 0L );
  43. public:
  44. // Constructor/destructor
  45. CDHCP_Reservation(const CHString& chsClassName, LPCSTR lpszNameSpace);
  46. virtual ~CDHCP_Reservation();
  47. };
  48. #endif