[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct WLAN_AVAILABLE_NETWORK_LIST
{
uint dwNumberOfItems;
uint dwIndex;
WLAN_AVAILABLE_NETWORK[] network;
public WLAN_AVAILABLE_NETWORK_LIST(IntPtr ppAvailableNetworkList)
{
dwNumberOfItems = (uint)Marshal.ReadInt32(ppAvailableNetworkList);
dwIndex = (uint)Marshal.ReadInt32(ppAvailableNetworkList, 4);
network = new WLAN_AVAILABLE_NETWORK[dwNumberOfItems];
for (int i = 0; i < dwNumberOfItems; i++)
{
WLAN_AVAILABLE_NETWORK wlanAvailableNetwork = new WLAN_AVAILABLE_NETWORK();
IntPtr pWlanAvailableNetwork = new IntPtr(ppAvailableNetworkList.ToInt32() + i * Marshal.SizeOf(typeof(WLAN_AVAILABLE_NETWORK)) + 8);
wlanAvailableNetwork = (WLAN_AVAILABLE_NETWORK)Marshal.PtrToStructure(pWlanAvailableNetwork, typeof(WLAN_AVAILABLE_NETWORK));
}
}
}
Structure WLAN_AVAILABLE_NETWORK_LIST
Public TODO
End Structure
None.