如何在 C# 中使用該函式
我需要使用 windows IP helper 來獲取特定的行程連接
因為它不會像這樣作業
[DllImport("Iphlpapi.dll", CharSet = CharSet.Ansi)]
public static extern int AllocateAndGetTcpExTableFromStack();
因為我得到了錯誤:
System.EntryPointNotFoundException: 'Unable to find an entry point named 'AllocateAndGetTcpExTableFromStack' in DLL 'Iphlpapi.dll'.'
uj5u.com熱心網友回復:
根據檔案,此功能“不再可用”。
鏈接頁面建議替代方案,您應該使用其中之一。
從 Windows Vista 開始,此功能不再可用。而是使用
GetTcpTableorGetExtendedTcpTable函式來檢索 TCP 連接表。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/438369.html
