草庐IT

DhcpNotifyConfigChange

全部标签

windows - 对注册表的更改不生效

Windows7设置注册表nicdns信息后如何使设置尽快生效?我可以使用函数DhcpNotifyConfigChange吗?如何设置参数? 最佳答案 是的,你可以。但是,DhcpNotifyConfigChange是位于dhcpcsvc.dll中的未公开接口(interface)。及其参数:BOOLDhcpNotifyConfigChange(LPWSTRlpwszServerName,//localmachineshouldbeNULLLPWSTRlpwszAdapterName,//AdaptnameBOOLbNewIpAdd