CreateIpForwardEntry函数在VIsta/win2008下需要注意的一个地方
2009-04-30 22:42
525 查看
On Windows Vista and Windows Server 2008, the route metric specified in the dwForwardMetric1 member of the MIB_IPFORWARDROW structure pointed to by pRoute parameter represents a combination of the route metric added to the interface metric specified in the Metric member of the MIB_IPINTERFACE_ROW structure of the associated interface. So the dwForwardMetric1 member of the MIB_IPFORWARDROW structure should be equal to or greater than Metric member of the associated MIB_IPINTERFACE_ROW structure. If an application would like to set the route metric to 0, then the dwForwardMetric1 member of the MIB_IPFORWARDROW structure should be set equal to the value of the interface metric specified in the Metric member of the associated MIB_IPINTERFACE_ROW structure. An application can retrieve the interface metric by calling the GetIpInterfaceEntry function.
很多人没有注意MSDN中专门强调的这段话。
很多人没有注意MSDN中专门强调的这段话。
相关文章推荐
- 写正确函数需要注意的地方:输入一个字符串,打印出该字符串中字符的所有排列
- 关于cin.ignore()函数的一个需要注意的地方
- 写正确函数需要注意的地方:给定一个十进制整数N,计算从1开始到N的所有整数出现的“1”的个数
- 当你创建一个新项目时...有很多需要注意的地方哟
- qt国际化与本地化中一个需要注意的地方
- DataList等控件嵌套绑定的一个需要注意的地方
- 归并排序+一个编程需要注意的地方
- 创建一个Spring+SpringMVC+MyBatis+MySql+Maven项目需要注意的地方
- insert函数需要注意的地方
- C++使用localtime函数需要注意的地方
- C++中方法定义和调用需要注意的一个地方
- php in_array 函数使用说明与in_array需要注意的地方说明
- vc编写全局钩子需要注意的一个地方
- 写正确函数需要注意的地方:子数组的最大和
- 函数模板注意的一个地方
- C++使用localtime函数需要注意的地方
- 写正确程序需要注意的地方:输入一个正数n,输出所有和为n连续正数序列。
- SpriteBuilder修改CCB文件中的子CCB文件需要注意的一个地方
- go struct作为值函数参数需要注意的地方