IP_ADAPTER_INFO
The IP_ADAPTER_INFO structure contains information about a particular network adapter on the local computer.
typedef struct _IP_ADAPTER_INFO {
  struct _IP_ADAPTER_INFO* Next;
  DWORD ComboIndex;
  char AdapterName[MAX_ADAPTER_NAME_LENGTH + 4];
  char Description[MAX_ADAPTER_DESCRIPTION_LENGTH + 4];
  UINT AddressLength;
  BYTE Address[MAX_ADAPTER_ADDRESS_LENGTH];
  DWORD Index;
  UINT Type;
  UINT DhcpEnabled;
  PIP_ADDR_STRING CurrentIpAddress;
  IP_ADDR_STRING IpAddressList;
  IP_ADDR_STRING GatewayList;
  IP_ADDR_STRING DhcpServer;
  BOOL HaveWins;
  IP_ADDR_STRING PrimaryWinsServer;
  IP_ADDR_STRING SecondaryWinsServer;
  time_t LeaseObtained;
  time_t LeaseExpires; 
} IP_ADAPTER_INFO, *PIP_ADAPTER_INFO;
Members
- Next 
- Pointer to the next adapter in the linked list of adapters.
- ComboIndex 
- This member is unused.
- AdapterName[MAX_ADAPTER_NAME_LENGTH + 4] 
- Specifies the name of the adapter.
- Description[MAX_ADAPTER_DESCRIPTION_LENGTH + 4] 
- Specifies a description for the adapter.
- AddressLength 
- Specifies the length of hardware address for the adapter.
- Address[MAX_ADAPTER_ADDRESS_LENGTH] 
- Specifies the hardware address for the adapter.
- Index 
- Specifies the adapter index. 
- Type 
- Specifies the adapter type.  
- DhcpEnabled 
- Specifies whether dynamic host configuration protocol (DHCP) is enabled for this adapter.
- CurrentIpAddress 
- Specifies the current IP address for this adapter.  
- IpAddressList 
- Specifies the list of IP addresses associated with this adapter.
- GatewayList 
- Specifies the IP address of the default gateway for this adapter.  
- DhcpServer 
- Specifies the IP address of the DHCP server for this adapter.
- HaveWins 
- Specifies whether this adapter uses Windows Internet Name Service (WINS).
- PrimaryWinsServer 
- Specifies the IP address of the primary WINS server.
- SecondaryWinsServer 
- Specifies the IP address of the secondary WINS server.
- LeaseObtained 
- Specifies the time when the current DHCP lease was obtained.
- LeaseExpires 
- Specifies the time when the current DHCP lease will expire.
  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 98.
  Header: Declared in Iptypes.h.
See Also
GetAdaptersInfo