private void refreshStats(Object source, ElapsedEventArgs e) { HV_HOOKING_HCALL_STATS[] stats = DriverIO.getStats(); if (stats != null) { for (int x = 0; x < table.Rows.Count; x++) { //int idx = (int)table.Rows[x].Cells[0].Value; int idx = Convert.ToInt32(table.Rows[x].Cells[0].Value.ToString().Substring(2), 16); table.Rows[x].Cells[1].Value = stats[idx].count; table.Rows[x].Cells[2].Value = stats[idx].lastProcessID; table.Rows[x].Cells[3].Value = stats[idx].lastElementCount; table.Rows[x].Cells[4].Value = stats[idx].fast > 0; table.Rows[x].Cells[5].Value = stats[idx].slow > 0; } applyFilters(); return; } }