NetworkInformation

[DllImport("Iphlpapi.dll", SetLastError = true)]
public static extern int NetworkInformation(
   ref IP_MIB_GET_ROW pInputData
);

Microsoft documentation: Link

Last updated