Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than Structures, prefix the name with the module name and a period.
WLAN_CONNECTION_PARAMETERS (Structures)
.
C# Definition:
[StructLayout(LayoutKind.Sequential,CharSet=CharSet.Unicode)]
public struct WLAN_CONNECTION_PARAMETERS
{
public WLAN_CONNECTION_MODE wlanConnectionMode;
public string strProfile;
public DOT11_SSID[] pDot11Ssid;
public DOT11_BSSID_LIST[] pDesiredBssidList;
public DOT11_BSS_TYPE dot11BssType;
public uint dwFlags;
}
VB Definition:
Structure WLAN_CONNECTION_PARAMETERS
Public TODO
End Structure
The history of this shows that IntPtrs for pDot11Ssid and pDesiredBssidList were changed to DOT11_SSID[] and DOT11_LIST[]. Then it should have some kind of explanation about the reason.
I think whether to use IntPtr or DOT11_SSID[] etc should be determined by which one you want, "Marshal" or "UnMarshal".
The rationale behind the change in the history for this is because is that he/she wanted to "unmarshal". However, in functions like WlanConnect(), it is used as an "input". So, it needs to be marshaled. Then I believe they should be IntPtr.
Also, DOT11_SSID[] looks to be wrong. It is to point one "SSID" not a series of SSID.
Also, it would be great if it explains how to marshal ucSSID in DOT11, because the ucSSID is just ANSI string ( without the terminating '\0'. )
>>Here is a simple way to marshal the DOT11_SSID structure. This uses Marshal.AllocHGlobal but you could also use Marshal.StructureToPtr.
int ssidSize = 4 + 32;
int ssidSize = 4 + DOT11_SSID_MAX_LENGTH;
IntPtr ssidSpace = Marshal.AllocHGlobal(ssidSize);
for (int i = 0; i < ssidTextBytes.Length; i++)
Marshal.WriteByte(ssidSpace, 4 + i, ssidTextBytes[i]);
wcp.pDot11Ssid = ssidSpace;
...
Marshal.FreeHGlobal(ssidSpace);
Defines the mode of connection.
11/5/2008 7:03:32 PM - anonymous
Contains the SSID of an interface.
11/5/2008 7:08:23 PM - anonymous
TODO - a short description
1/22/2014 8:27:15 AM - -130.225.243.84
Defines a basic service set (BSS) network type.
10/8/2009 12:53:09 PM - -174.130.71.133
An IntPtr is a pointer to a memory location (unmanaged) that adapts to the platform it is running on (64-bit, etc.) UNLIKE a standard int/Integer. You should always use this type for unmanaged calls that require it, even though an int will appear to work on your development machine.
1/13/2008 4:00:13 AM - Damon Carr-72.43.165.29
An IntPtr is a pointer to a memory location (unmanaged) that adapts to the platform it is running on (64-bit, etc.) UNLIKE a standard int/Integer. You should always use this type for unmanaged calls that require it, even though an int will appear to work on your development machine.
1/13/2008 4:00:13 AM - Damon Carr-72.43.165.29
An IntPtr is a pointer to a memory location (unmanaged) that adapts to the platform it is running on (64-bit, etc.) UNLIKE a standard int/Integer. You should always use this type for unmanaged calls that require it, even though an int will appear to work on your development machine.
1/13/2008 4:00:13 AM - Damon Carr-72.43.165.29
Contains the SSID of an interface.
11/5/2008 7:08:23 PM - anonymous
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.