跳转至

DD_NETWORK_IP_CONFIG

结构体定义

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
typedef struct _dd_network_ip_config_
{
    unsigned int iSize;                         
    unsigned int useDHCP;                       
    unsigned int IP;                            
    unsigned int subnetMask;                    
    unsigned int gateway;                       
    unsigned int preferredDNS;                  
    unsigned int alternateDNS;                  
    unsigned int usePPPoE;                      
    char account[DD_MAX_PPPOE_ACCOUNT_BUF_LEN]; 
    char password[DD_MAX_PASSWORD_BUF_LEN];     
} DD_NETWORK_IP_CONFIG;
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
[StructLayout(LayoutKind.Sequential, Pack = 4)]
public struct DD_NETWORK_IP_CONFIG
{
    public UInt32 iSize;
    public UInt32 useDHCP;
    public UInt32 IP;
    public UInt32 subnetMask;
    public UInt32 gateway;
    public UInt32 preferredDNS;
    public UInt32 alternateDNS;
    public UInt32 usePPPoE;
    [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 132)]
    public byte[] account;
    [MarshalAs(UnmanagedType.ByValArray, ArraySubType = UnmanagedType.U1, SizeConst = 132)]
    public byte[] password;
}

功能描述

网络IP配置结构体。

成员说明

成员 类型 备注
iSize unsigned int 本结构体长度。
useDHCP unsigned int 是否使用动态网络地址。
IP unsigned int 网络地址。
subnetMask unsigned int 子网掩码。
gateway unsigned int 网关。
preferredDNS unsigned int 主网络域名服务器地址。
alternateDNS unsigned int 从网络域名服务器地址。
usePPPoE unsigned int 是否使用PPPoE。
account char[DD_MAX_PPPOE_ACCOUNT_BUF_LEN] PPPoE的帐号。
password char[DD_MAX_PASSWORD_BUF_LEN] PPPoE的密码。
错误码