public static NdisObjectHeader CreateDefault() { NdisObjectHeader header = new NdisObjectHeader(); header.Type = 0x80; header.Revision = 1; header.Size = (ushort)Marshal.SizeOf(header); return(header); }
private Dot11MacAddress[] bssids; //dynamic array Dot11MacAddress[] public static Dot11BssidList Build(Dot11MacAddress[] bssids) { Dot11BssidList list = new Dot11BssidList(); int maxLength = CalculateMaxLength(); list.listHeader.TotalNumOfEntries = (ushort)maxLength; list.header = NdisObjectHeader.CreateDefault(); list.Entries = bssids; return(list); }