【问题标题】:how to set system ip programmatically如何以编程方式设置系统IP
【发布时间】:2011-03-26 14:22:40
【问题描述】:

C++

如何以编程方式更改系统 IP...

如果帐户具有有限权限,如何使用密码执行任务

【问题讨论】:

  • 系统没有IP,接口有IP(比如你的网卡)。

标签: c++ windows winapi ip-address uac


【解决方案1】:

在 msdn 上看看这个link。我相信您应该研究的功能是:

DWORD AddIPAddress(
  __in   IPAddr Address,
  __in   IPMask IpMask,
  __in   DWORD IfIndex,
  __out  PULONG NTEContext,
  __out  PULONG NTEInstance
);

【讨论】:

    猜你喜欢
    • 2012-10-19
    • 2018-05-06
    • 1970-01-01
    • 1970-01-01
    • 2018-07-23
    • 1970-01-01
    • 2011-05-05
    • 2010-10-07
    • 2011-05-05
    相关资源
    最近更新 更多