Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

WLAN_AVAILABLE_NETWORK_LIST (Structures)
 
.
Summary
TODO - a short description

C# Definition:

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
struct WLAN_AVAILABLE_NETWORK_LIST
    {
        internal   uint dwNumberOfItems;
        internal   uint dwIndex;
        internal   WLAN_AVAILABLE_NETWORK[] wlanAvailableNetwork;

    internal WLAN_AVAILABLE_NETWORK_LIST(IntPtr ppAvailableNetworkList)
        {
            dwNumberOfItems = (uint)Marshal.ReadInt32(ppAvailableNetworkList);
            dwIndex = (uint)Marshal.ReadInt32(ppAvailableNetworkList, 4);
            wlanAvailableNetwork = new WLAN_AVAILABLE_NETWORK[dwNumberOfItems];

            for (int i = 0; i < dwNumberOfItems; i++)
            {
               IntPtr pWlanAvailableNetwork = new IntPtr(ppAvailableNetworkList.ToInt32() + i * Marshal.SizeOf(typeof(WLAN_AVAILABLE_NETWORK)) + 8);
                wlanAvailableNetwork[i] = (WLAN_AVAILABLE_NETWORK)Marshal.PtrToStructure(pWlanAvailableNetwork, typeof(WLAN_AVAILABLE_NETWORK));
            }
         }
    }

VB Definition:

<StructLayout(LayoutKind.Sequential, CharSet := CharSet.Unicode)> _

Friend Structure WLAN_AVAILABLE_NETWORK_LIST

            Friend dwNumberOfItems As UInteger
            Friend dwIndex As UInteger
            Friend wlanAvailableNetwork() As WLAN_AVAILABLE_NETWORK

        Friend Sub New(ByVal ppAvailableNetworkList As IntPtr)
                dwNumberOfItems = CUInt(Marshal.ReadInt32(ppAvailableNetworkList))
                    dwIndex = CUInt(Marshal.ReadInt32(ppAvailableNetworkList, 4))
                    wlanAvailableNetwork = New WLAN_AVAILABLE_NETWORK(dwNumberOfItems - 1){}

                    For i As Integer = 0 To dwNumberOfItems - 1
                       Dim pWlanAvailableNetwork As New IntPtr(ppAvailableNetworkList.ToInt32() + i * Marshal.SizeOf(GetType(WLAN_AVAILABLE_NETWORK)) + 8)
                        wlanAvailableNetwork(i) = CType(Marshal.PtrToStructure(pWlanAvailableNetwork, GetType(WLAN_AVAILABLE_NETWORK)), WLAN_AVAILABLE_NETWORK)
                    Next i
        End Sub

End Structure

Structure WLAN_AVAILABLE_NETWORK_LIST
   Public TODO
End Structure

User-Defined Field Types:

WLAN_AVAILABLE_NETWORK

Notes:

None.

Documentation

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions