获得系统路由表信息
摘要:
该程序用于获取系统的路由信息,,,在删除某条路由记录时,本想通过DeleteIpForwardEntry函数实现,发现需要指定dwForwardPolicy,该字段不是很清楚,因此通过遍历路由表,然后匹配要删除的路由表的目的、网关IP来实现 。#include <Windows.h>#include <stdio.h>#include <IPHlpApi.h>#include "conio.h"#pragma comment(lib, "iphlpapi.lib")#pragma comment(lib, " 阅读全文
posted @ 2012-09-05 12:44 歌舞程序 阅读(522) 评论(0) 推荐(0)
浙公网安备 33010602011771号