GetAdapaterInfo --- 取得網卡的資訊,如ip
PfCreateInterface ----Create一個Filter Interface
PfBindInterfaceToIPAddress ----系結Filter Interface到IP
PfAddFiltersToInterface ----增加Filter到Interface
PfRemoveFiltersFromInterface ---Remove Filter
PfUnBindInterface---取消系結到ip
PfDeleteInterface---洗掉Filter Interface
使用以上這些函式做了一個防火墻,但是只能在xp和window2003系統上運行,在win7以上系統無法運行,PfBindInterfaceToIPAddress 和PfAddFiltersToInterface 二個函式都運行出錯,回傳值為120 難道這二函式對系統有要求嗎?只能在xp和2003上運行嗎?求高人給個指點,在網上搜索好多天了也沒有相關的答案,在此萬分感謝!
uj5u.com熱心網友回復:
你是編程的應該發到編程上去吧轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/20172.html
標籤:網絡協議與配置
