请问如何在95/98/me下枚举网卡,获得其动态分配的IP地址.并且增加或更改某个网卡的IP地址

老碧鹅 2002-06-03 05:47:02
如果可以的话还可以加分
...全文
41 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
老碧鹅 2002-06-05
  • 打赏
  • 举报
回复
失望啊,高手都去哪里了,难道旅游去了
cou 2002-06-04
  • 打赏
  • 举报
回复
到底在网络中编写程序是要用到什么类的
Yokishiro 2002-06-04
  • 打赏
  • 举报
回复
莫名
难道windows是调用一个函数就做出来的吗?
老碧鹅 2002-06-04
  • 打赏
  • 举报
回复
Yokishiro(Vital arrow)

我说的是将枚举和增加或者修改IP关联起来,单一的功能我已经能够实现
老碧鹅 2002-06-04
  • 打赏
  • 举报
回复
各位请注意我说的平台是95/98/me下,不是2k/xp
xiaoxie000 2002-06-03
  • 打赏
  • 举报
回复
在95/98/me下?
关注(以前没做过。。。。。)。
Yokishiro 2002-06-03
  • 打赏
  • 举报
回复
IP Address Management(似乎不是很管用)
AddIPAddress
DeleteIPAddress
GetIpAddrTable
IpReleaseAddress
IpRenewAddress

Yokishiro 2002-06-03
  • 打赏
  • 举报
回复
ip help api

GetIfTable()
The GetIfTable function retrieves the MIB-II interface table.

DWORD GetIfTable(
PMIB_IFTABLE pIfTable, // buffer for interface table
PULONG pdwSize, // size of buffer
BOOL bOrder // sort the table by index?
);
Parameters
pIfTable
[out] Pointer to a buffer that receives the interface table as a MIB_IFTABLE structure.
pdwSize
[in, out] On input, specifies the size of the buffer pointed to by the pIfTable parameter.
On output, if the buffer is not large enough to hold the returned interface table, the function sets this parameter equal to the required buffer size.

bOrder
[in] Specifies whether the returned interface table should be sorted in ascending order by interface index. 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, use FormatMessage to obtain the message string for the returned error.

Requirements
Windows NT/2000 or later: Requires Windows NT 4.0 SP4 or later.
Windows 95/98/Me: Requires Windows 98 or later.
Header: Declared in Iphlpapi.h.
Library: Use Iphlpapi.lib.

4,356

社区成员

发帖
与我相关
我的任务
社区描述
通信技术相关讨论
社区管理员
  • 网络通信
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧