public static MIB_TCPSTATS GetTcpStatistics(bool b_verbose, ref UInt32 error_code) { MIB_TCPSTATS m = new MIB_TCPSTATS(); error_code = GetTcpStatistics(ref m); if (error_code != 0) { if (b_verbose) { string str_msg = Tools.API.API_error.GetAPIErrorMessageDescription(error_code); System.Windows.Forms.MessageBox.Show(str_msg, "Error", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error); } } return(m); }
UInt32 GetTcpStatistics( ref MIB_TCPSTATS pStats );
UInt32 GetTcpStatisticsEx( ref MIB_TCPSTATS pStats, UInt32 dwFamily );