MultinetGetConnectionPerformance

[DllImport("Mpr.dll", SetLastError = true)]
public static extern uint MultinetGetConnectionPerformance(
   string pszRemoteName,
   ref NETCONNECTINFOSTRUCT lpNetConnectInfo
);

Microsoft documentation: Link

Last updated