の助けを借りて、どのプロセスがどのネットワーク インターフェイスを使用しているかを把握できますManaged IP Helper
。どこで見つけたのかわかりませんが、本当の魅力として機能します。
しかし、私が取得しているテーブルにエントリする方法を知っている人はいますか? 特定のプロセスがネットワークアダプターに到達する方法を見つけられないようにする方法を見つけています。または、そのようなプロセスがインターネットに接続できるネットワークアダプターがないことを発見しました。
マネージド IP ヘルパーはこちら
public const string DllName = "iphlpapi.dll";
public const int AfInet = 2;
#endregion
#region Public Methods
/// <summary>
/// <see cref="http://msdn2.microsoft.com/en-us/library/aa365928.aspx"/>
/// </summary>
[DllImport(IpHelper.DllName, SetLastError = true)]
public static extern uint GetExtendedTcpTable(IntPtr tcpTable, ref int tcpTableLength, bool sort, int ipVersion, TcpTableType tcpTableType, int reserved);
`