1
typedef struct { char sDVRIP[16]; /* DVR IP地址 */ char sDVRIPMask[16]; /* DVR IP地址掩码 */ DWORD dwNetInterface; /* 10M/100M自适应,索引 */ WORD wDVRPort; /* 端口号 */ BYTE byMACAddr[MACADDR_LEN]; /* 服务器的物理地址 */ }NET_POSA_ETHERNET; C#对应 public struct NET_POSA_ETHERNET { [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 16)] public string sDVRIP; //DVR IP地址 [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 16)] public string sDVRIPMask; // DVR IP地址掩码 public uint dwNetInterface; //网络接口 1-10MBase-T 2-10MBase-T全双工 3-100MBase-TX 4-100M全双工 5-10M/100M自适应 public uint wDVRPort; //端口号 [MarshalAs(UnmanagedType.ByValArray, SizeConst = 6)] public byte[] byMACAddr; //[MACADDR_LEN]; //PPPoE用户名//服务器的物理地址 }
https://www.cnblogs.com/coolbear/p/4155403.html
标签:100M,16,c#,SizeConst,全部,IP地址,动态,public,DVR From: https://www.cnblogs.com/cnchengv/p/17646184.html