|
int __stdcall SME_GetWirelessConfig |
( |
SME_HANDLE |
handle, |
|
|
int * |
network, |
|
|
char * |
SSID, |
|
|
int * |
channel, |
|
|
int * |
security, |
|
|
int * |
keyType |
|
) |
| |
Gets the wireless module's configuration.
- Parameters
-
[in] | handle | Valid handle returned by SME_Initialize(). |
[out] | network | Type of network connection |
[out] | SSID | Network name |
[out] | channel | Ad hoc channel number. If not an ad-hoc connection, channel is ignored |
[out] | security | Type of network security enabled. |
[out] | keyType | Key type used. |
- Return values
-
0 | Success. |
-1 | Invalid SME_Initialize handle. |
-2 | No module selected. Call SME_SearchForModules() first. |
-3 | Could not get the module's wireless configuration. |
Retrieves the current wireless configuration. If the wireless device exhibits a configuration other than those specified in this documentation, then the security type of SECURITY_UNKNOWN will be used.
- Warning
- SSID should be pre-allocated with 33 bytes of space before calling this function.
- See also
- Network Types, Security Type, Wireless Key Type
|