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.

27 lines
641 B

  1. #pragma once
  2. #include "tcpip.h"
  3. typedef enum _IP_VALIDATION_ERR
  4. {
  5. ERR_NONE = 0,
  6. ERR_NO_IP,
  7. ERR_NO_SUBNET,
  8. ERR_UNCONTIGUOUS_SUBNET,
  9. ERR_HOST_ALL0,
  10. ERR_HOST_ALL1,
  11. ERR_SUBNET_ALL0,
  12. ERR_INCORRECT_IP
  13. } IP_VALIDATION_ERR;
  14. IP_VALIDATION_ERR IsValidIpandSubnet(PCWSTR szIp, PCWSTR szSubnet);
  15. IP_VALIDATION_ERR ValidateIp(ADAPTER_INFO * const pvcardAdapterInfo);
  16. int CheckForDuplicates(const VCARD * pvcardAdapterInfo, ADAPTER_INFO * pAdapterInfo, tstring& strIp);
  17. BOOL FHasDuplicateIp(ADAPTER_INFO * pAdapterInfo);
  18. BOOL FIsValidIpFields(PCWSTR szIp, BOOL fIsIpAddr = TRUE);
  19. UINT GetIPValidationErrorMessageID(IP_VALIDATION_ERR err);