I am trying to write something that will fire an event anytime the hard disk reads data or writes data. I know this involves using System.Diagnostics.PerformanceCounter but I don’t know this well enough to be able to do this on my own. Can someone point me in the right direction? Also, I’d like the event that fires to return which drive is being read or written to. Any help would be appreciated. This is C#, by the way.
Share
The following does not create events but you could use it together with a timer to display information in the tray (as per comments):
_Totalis for ALL disks… to get the specific instancenames of available disks use:you can then create a pair of
diskRead/diskWritefor every instance you are interested in… for sample on how to use this in combination with a timer see this.