GetIpNetTable

[DllImport("Iphlpapi.dll", SetLastError = true)]
public static extern uint GetIpNetTable(
   IntPtr pIpNetTable,
   ref uint pdwSize,
   bool bOrder
);

Microsoft documentation: Link

Last updated