public static int DhcpSetOptionValue(string server, DhcpOption Option) { DHCP_OPTION_SCOPE_INFO scopeInfo = new DHCP_OPTION_SCOPE_INFO(); scopeInfo.ScopeType = DHCP_OPTION_SCOPE_TYPE.DhcpGlobalOptions; DHCP_OPTION convertedOption = new DHCP_OPTION(); //convertedOption. int success = dhcpsapimethods.DhcpSetOptionValue(server, Option.OptionID, ref scopeInfo, ref convertedOption.DefaultValue); return(success); }
public static extern int DhcpSetOptionValue( string IpAddress, uint OptionID, ref DHCP_OPTION_SCOPE_INFO ScopeInfo, ref DHCP_OPTION_DATA OptionData);
public static int DhcpSetOptionValue(string server, DhcpOption Option) { DHCP_OPTION_SCOPE_INFO scopeInfo = new DHCP_OPTION_SCOPE_INFO(); scopeInfo.ScopeType = DHCP_OPTION_SCOPE_TYPE.DhcpGlobalOptions; DHCP_OPTION convertedOption = new DHCP_OPTION(); //convertedOption. int success = dhcpsapimethods.DhcpSetOptionValue(server, Option.OptionID, ref scopeInfo, ref convertedOption.DefaultValue); return success; }