public static MIB_UDPSTATS GetUdpStatistics(bool b_verbose, ref UInt32 error_code) { MIB_UDPSTATS m = new MIB_UDPSTATS(); error_code = GetUdpStatistics(ref m); if ((error_code != 0) && b_verbose)// error { 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 GetUdpStatistics( ref MIB_UDPSTATS pStats );
UInt32 GetUdpStatisticsEx( ref MIB_UDPSTATS pStats, UInt32 dwFamily );