DHCP Server Management API
Server Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.
Header

Declared in Dhcpsapi.h.

Library

Link to Dhcpsapi.lib.

DLL Requires Dhcpsapi.dll.
vs2005才有这个库和头文件

CHAR *srvIP=L"192.168.0.207";
 DHCP_SEARCH_INFO sinfo;
 sinfo.SearchType=DhcpClientName;
 sinfo.SearchInfo.ClientName=L"link-hh.";
 DHCP_CLIENT_INFO cinfo;
 LPDHCP_CLIENT_INFO pcinfo=NULL;
 DhcpGetClientInfo(srvIP,sinfo,&pcinfo);

 pcinfo->ClientIpAddress=htonl( inet_addr("192.168.0.20"));
 DhcpCreateClientInfo(srvIP,pcinfo);


相关文章:

  • 2021-08-21
  • 2021-12-24
  • 2022-01-27
  • 2021-06-22
  • 2022-12-23
  • 2021-04-07
  • 2021-09-14
猜你喜欢
  • 2021-06-13
  • 2022-12-23
  • 2021-04-17
  • 2021-12-30
  • 2022-12-23
  • 2021-08-21
相关资源
相似解决方案