Monitor file disk activity programmatically (Windows)

Posted by iulianchira on Stack Overflow See other posts from Stack Overflow or by iulianchira
Published on 2010-04-12T22:16:30Z Indexed on 2010/04/12 22:53 UTC
Read the original article Hit count: 283

In Windows 2008R2, in Resource Monitor in the Disk Acitivity section I can see the number of bytes read from/written into files. How can I do this in a programatic manner, prefferably using C# (or Win32 API)? I have looked into WMI and various performance counters, however I cannot figure out if there is something which suits my needs.

© Stack Overflow or respective owner

Related posts about disk-activity

Related posts about performancecounter