The MASM Forum Archive 2004 to 2012

Project Support Forums => MASM32 => WINDOWS.INC Project => Topic started by: sonic on September 01, 2007, 03:25:56 PM

Title: IP_ADAPTER_INFO
Post by: sonic on September 01, 2007, 03:25:56 PM
Was playing with GetAdaptersInfo api and found that the IP_ADAPTER_INFO structure isn't defined. The ipi Api's are included but maybe structures are misisng?

http://msdn2.microsoft.com/en-us/library/aa366074.aspx

Regards
Title: Re: IP_ADAPTER_INFO
Post by: ToutEnMasm on September 08, 2007, 10:18:14 AM
Hello,
http://msdn2.microsoft.com/en-us/library/aa366062.aspx
Use the translator to have it translate.

Quote
IP_ADDRESS_STRING   STRUCT
   String BYTE 4 * 4 dup (?)

IP_ADDRESS_STRING      ENDS

Quote
IP_ADDR_STRING   STRUCT
   Next DWORD ?
   IpAddress IP_ADDRESS_STRING <>
   IpMask IP_MASK_STRING <>
   Context DWORD ?

IP_ADDR_STRING      ENDS

Quote
IP_ADAPTER_INFO   STRUCT
   Next DWORD ?
   ComboIndex DWORD ?
   AdapterName BYTE MAX_ADAPTER_NAME_LENGTH + 4 dup (?)
   Description BYTE MAX_ADAPTER_DESCRIPTION_LENGTH + 4 dup (?)
   AddressLength DWORD ?
   Address BYTE MAX_ADAPTER_ADDRESS_LENGTH dup (?)
   Index DWORD ?
   type1 DWORD ?
   DhcpEnabled DWORD ?
   CurrentIpAddress DWORD ?
   IpAddressList IP_ADDR_STRING <>
   GatewayList IP_ADDR_STRING <>
   DhcpServer IP_ADDR_STRING <>
   HaveWins DWORD ?
   PrimaryWinsServer IP_ADDR_STRING <>
   SecondaryWinsServer IP_ADDR_STRING <>
   LeaseObtained DWORD ?
   LeaseExpires DWORD ?

IP_ADAPTER_INFO      ENDS


   ToutEnmasm