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.

50 lines
1.7 KiB

  1. /******************************************************************
  2. ResFn.h -- Properties action functions declarations (GET/SET)
  3. MODULE:
  4. DhcpProv.dll
  5. DESCRIPTION:
  6. Contains the declaration of the CDHCP_Reservation_Parameters class, modeling all
  7. the datastructures used to retrieve the information from the DHCP Reservation.
  8. Contains the declarations for the action functions associated to
  9. each manageable property from the class CDHCP_Server
  10. REVISION:
  11. 08/14/98 - created
  12. ******************************************************************/
  13. #include "Props.h" // needed for MFN_PROPERTY_ACTION_DECL definition
  14. #ifndef _RNGFN_H
  15. #define _RNGFN_H
  16. // gathers the data structures needed for retrieving data from the DHCP Lease.
  17. class CDHCP_Range_Parameters
  18. {
  19. private:
  20. void DeleteRangeInfoArray(LPDHCP_SUBNET_ELEMENT_INFO_ARRAY_V4& pRangeInfoArray);
  21. public:
  22. DHCP_IP_ADDRESS m_dwSubnet;
  23. DHCP_IP_ADDRESS m_dwStartAddress;
  24. DHCP_IP_ADDRESS m_dwEndAddress;
  25. LPDHCP_SUBNET_ELEMENT_INFO_ARRAY_V4 m_pRangeInfoArray;
  26. CDHCP_Range_Parameters(
  27. DHCP_IP_ADDRESS dwSubnet,
  28. DHCP_IP_ADDRESS dwStartAddress = 0,
  29. DHCP_IP_ADDRESS dwEndAddress = 0);
  30. ~CDHCP_Range_Parameters();
  31. DWORD NextSubnetRange(DHCP_RESUME_HANDLE & hResume, DHCP_SUBNET_ELEMENT_TYPE rangeType);
  32. BOOL CheckExistsRangeInCache(DHCP_SUBNET_ELEMENT_TYPE rangeType);
  33. BOOL CheckExistsRange(DHCP_SUBNET_ELEMENT_TYPE rangeType);
  34. BOOL CreateRange(DHCP_SUBNET_ELEMENT_TYPE rangeType);
  35. BOOL DeleteRange(DHCP_SUBNET_ELEMENT_TYPE rangeType);
  36. };
  37. #endif