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

后端 未结 6 1825
半阙折子戏
半阙折子戏 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:49

    Some possibilities:

    • WinPCap - Will not give you application, however
    • LSP - Loaded as a DLL into any process that uses Winsock. Gives you everyhting you would want to monitor traffic per-application, but is not simple to write.
    • WMI - Aggregate totals per network interface: http://msdn.microsoft.com/en-us/library/aa394293(VS.85).aspx

提交回复
热议问题