AddIPAddress

[DllImport("Iphlpapi.dll", SetLastError = true)]
public static extern int AddIPAddress(
   uint Address,
   uint IpMask,
   int IfIndex,
   out MIB_IPINTERFACE_ROW Row
);

Microsoft documentation: Link

Last updated