示例#1
0
        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);
        }
示例#2
0
 public static extern int DhcpSetOptionValue(
     string IpAddress,
     uint OptionID,
     ref DHCP_OPTION_SCOPE_INFO ScopeInfo,
     ref DHCP_OPTION_DATA OptionData);
示例#3
0
 public static extern int DhcpSetOptionValue(
     string IpAddress,
     uint OptionID,
     ref DHCP_OPTION_SCOPE_INFO ScopeInfo,
     ref DHCP_OPTION_DATA OptionData);
示例#4
0
 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;
 }