Monitoring data in/out of the computer via vb.net

后端 未结 6 1822
半阙折子戏
半阙折子戏 2021-01-16 20:29

I want to create a bandwidth meter for Windows using vb.net, but I cannot seem to find anything in the .net framework for monitoring the amount of data in or out. I want to

6条回答
  •  情深已故
    2021-01-16 20:51

    Your best bet is to use performance counters or WMI and do sampling at a frequency that is comfortable for you. IF you are trying to get something similar to the byte counts on the network card properties those counters are in the performance counter set.

    If you are trying to also measure all devices (USB, etc) you will probably need to write your own customer drivers to intercept data transfer events.

提交回复
热议问题