GetIpAddrTable函数的用法
来源:互联网 发布:c语言二级辅导温度转换 编辑:程序博客网 时间:2024/04/30 12:26
IP助手函数里面能找到的。(mmsdn中ip helper函数族)
另外这些函数还包括网卡的一些设置。
增加一个IP地址。
。。。很多呀
下面这个函数是得到一个数组的。
GetIpAddrTable
The GetIpAddrTable function retrieves the interface–to–IP address mapping table.
DWORD GetIpAddrTable(
PMIB_IPADDRTABLE pIpAddrTable,
PULONG pdwSize,
BOOL bOrder
);
Parameters
pIpAddrTable
[out] Pointer to a buffer that receives the interface–to–IP address mapping table as a MIB_IPADDRTABLE structure.
pdwSize
[in, out] On input, specifies the size of the buffer pointed to by the pIpAddrTable parameter.
On output, if the buffer is not large enough to hold the returned mapping table, the function sets this parameter equal to the required buffer size.
bOrder
[in] Specifies whether the returned mapping table should be sorted in ascending order by IP address. If this parameter is TRUE, the table is sorted.
Return Values
If the function succeeds, the return value is NO_ERROR.
If the function fails, the return value is one of the following error codes.
Return Code Description
ERROR_INSUFFICIENT_BUFFER The buffer pointed to by the pIpAddrTable parameter is not large enough. The required size is returned in the DWORD variable pointed to by the pdwSize parameter.
ERROR_INVALID_PARAMETER The pdwSize parameter is NULL, or GetIpAddrTable is unable to write to the memory pointed to by the pdwSize parameter.
ERROR_NOT_SUPPORTED This function is not supported on the operating system in use on the local system.
Other Use FormatMessage to obtain the message string for the returned error.
另外这些函数还包括网卡的一些设置。
增加一个IP地址。
。。。很多呀
下面这个函数是得到一个数组的。
GetIpAddrTable
The GetIpAddrTable function retrieves the interface–to–IP address mapping table.
DWORD GetIpAddrTable(
PMIB_IPADDRTABLE pIpAddrTable,
PULONG pdwSize,
BOOL bOrder
);
Parameters
pIpAddrTable
[out] Pointer to a buffer that receives the interface–to–IP address mapping table as a MIB_IPADDRTABLE structure.
pdwSize
[in, out] On input, specifies the size of the buffer pointed to by the pIpAddrTable parameter.
On output, if the buffer is not large enough to hold the returned mapping table, the function sets this parameter equal to the required buffer size.
bOrder
[in] Specifies whether the returned mapping table should be sorted in ascending order by IP address. If this parameter is TRUE, the table is sorted.
Return Values
If the function succeeds, the return value is NO_ERROR.
If the function fails, the return value is one of the following error codes.
Return Code Description
ERROR_INSUFFICIENT_BUFFER The buffer pointed to by the pIpAddrTable parameter is not large enough. The required size is returned in the DWORD variable pointed to by the pdwSize parameter.
ERROR_INVALID_PARAMETER The pdwSize parameter is NULL, or GetIpAddrTable is unable to write to the memory pointed to by the pdwSize parameter.
ERROR_NOT_SUPPORTED This function is not supported on the operating system in use on the local system.
Other Use FormatMessage to obtain the message string for the returned error.
- GetIpAddrTable函数的用法
- 使用GetIpAddrTable管理IP地址
- decode 函数的用法
- 格式化函数的用法
- 格式化函数的用法
- sql 函数的用法
- slice函数的用法
- eval函数的用法
- memset函数的用法
- OPENQUERY函数的用法
- parsename函数的用法
- menset函数的用法
- AfxExtractSubString函数的用法
- memset函数的用法
- decode 函数的用法
- Trim 函数的用法
- StrComp()函数的用法
- VA 函数的用法
- Google关键字工具
- Joe Celko's SQL Programming Style
- 求职遭遇的问题(C#和C++)。(1)
- 百度指数
- Eclipse: Step by Step
- GetIpAddrTable函数的用法
- XML Sitemap 相关问题
- Managing Corporate Information Systems Evolution and Maintenance
- 试写第一次博客
- .net类库中发送电子邮件的方法总结收藏
- 如何将SEP服务器从一台服务器移动到具不同主机和IP地址的服务器上
- 出差总结2:程序效率问题
- 创建文本形式的Sitemap
- coreJava 学习日记