Programmatically getting per-process network statistics on Windows?

前端 未结 5 1277
天命终不由人
天命终不由人 2020-12-14 11:21

I\'d like to find out which processes are using my network. This is quite easy in Linux, but I\'m stumped as to how to do this in Windows.

Essentially, I\'d like, fo

5条回答
  •  情深已故
    2020-12-14 12:07

    I wrote a solution to this.

    A TDI filter driver to collect the stats, a service which communicates with the driver and gets the stats once per second. Since the filter is at the TDI layer, I know which sockets belong to which applications. The service is a server for this data, offering it via shared memory to arbitrary third party clients via an API I wrote. I wrote a GUI and a command line client.

    You can also bandwidth shape sends (per interface and/or application and/or socket) and watch data passing over a socket in real time, in a window.

提交回复
热议问题