If you want to get the IP Address,Subnet Mask,Default Gateway,DHCP Server,Primary WINS Server,Secondary WINS Server then use this snippet:
const // put this const at the header of the code
ADAPTERCAPACITY = 4096 // ADAPTERCAPACITY >= 640 * ADAPTERSCOUNT // make sure to count the number of adapters you have at your computer.
IPOFFSETIPADDRESS = 0x1B0 // Current IP Address
IPOFFSETSUBNETMASK = 0x1C0 // Subnet Mask
IPOFFSETGATEWAY = 0x1D8 // Default Gateway
IPOFFSETDHCPSERVER = 0x1E8 // DHCP Server
IPOFFSETPWINSS = 0x200 // Primary WINS Server
IPOFFSETSWINSS = 0x210 // Secondary WINS Server
end
const // used by GetMyLocalIP
ADAPTERLIBRARY = 31@...