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.

51 lines
1.7 KiB

  1. /******************************************************************
  2. SNetFn.h -- Properties action functions declarations (GET/SET)
  3. MODULE:
  4. DhcpProv.dll
  5. DESCRIPTION:
  6. Contains the declaration of the CDHCP_SuperScope_Parameters class, modeling all
  7. the datastructures used to retrieve the information from the DHCP Subnet.
  8. Contains the declarations for the action functions associated to
  9. each manageable property from the class CDHCP_Server
  10. REVISION:
  11. 08/03/98 - created
  12. ******************************************************************/
  13. #include "Props.h" // needed for MFN_PROPERTY_ACTION_DECL definition
  14. #ifndef _SSCOFN_H
  15. #define _SSCOFN_H
  16. #define ENTRIES_SORTED_ON_SUPER_SCOPE 1
  17. #define ENTRIES_SORTED_ON_SUBNET 2
  18. extern UINT g_uSortFlags;
  19. int __cdecl sortHandler(const void* elem1, const void* elem2);
  20. // gathers the data structures needed for retrieving data from the DHCP Server.
  21. class CDHCP_SuperScope_Parameters
  22. {
  23. public:
  24. WCHAR *m_wcsSuperScopeName;
  25. LPDHCP_SUPER_SCOPE_TABLE m_pSuperScopeTable;
  26. LPDHCP_SUPER_SCOPE_TABLE_ENTRY *m_pSortedEntries;
  27. void CleanupTable();
  28. CDHCP_SuperScope_Parameters(const WCHAR *wcsSuperScopeName = NULL);
  29. CDHCP_SuperScope_Parameters(const CHString & str);
  30. ~CDHCP_SuperScope_Parameters();
  31. BOOL ExistsSuperScope (BOOL fRefresh = FALSE);
  32. BOOL GetSuperScopes(LPDHCP_SUPER_SCOPE_TABLE &superScopeTable, BOOL fRefresh);
  33. BOOL GetSortedScopes(UINT sortFlags, LPDHCP_SUPER_SCOPE_TABLE_ENTRY * & pSortedEntries, DWORD &dwNumEntries);
  34. BOOL AlterSubnetSet(DHCP_IP_ADDRESS subnetAddress);
  35. BOOL DeleteSuperScope();
  36. };
  37. #endif