hi,
I work on a program that supposed to check what wireless network im connected and what is the signal strength
when i use WLAN_AVAILABLE_NETWORK Structure i have a weird problem with
dwFlags
when im connected to open network the WLAN_AVAILABLE_NETWORK_CONNECTED flag works just fine,
but when it is encrypted network the flag value is not WLAN_AVAILABLE_NETWORK_CONNECTED
on msdn there is 2 options of flags this one and a profile exist one.
i went to the definition of this flags and thats what i got:
#define WLAN_AVAILABLE_NETWORK_CONNECTED 0x00000001 // This network is currently connected<br/>
#define WLAN_AVAILABLE_NETWORK_HAS_PROFILE 0x00000002 // There is a profile for this network<br/>
#define WLAN_AVAILABLE_NETWORK_CONSOLE_USER_PROFILE 0x00000004 // The profile is the active console users per user profile
the last flag looks just the right one but the actual value i get when im connect to encrypted networks is 3
checked on couple networks and the network im connected to always returns 3 in dwflags . that looks like it actually works that way but i cant find anywhere what does that means and im little afraid that might mess something up.
can anyone help me with that?
View the full article
I work on a program that supposed to check what wireless network im connected and what is the signal strength
when i use WLAN_AVAILABLE_NETWORK Structure i have a weird problem with
dwFlags
when im connected to open network the WLAN_AVAILABLE_NETWORK_CONNECTED flag works just fine,
but when it is encrypted network the flag value is not WLAN_AVAILABLE_NETWORK_CONNECTED
on msdn there is 2 options of flags this one and a profile exist one.
i went to the definition of this flags and thats what i got:
#define WLAN_AVAILABLE_NETWORK_CONNECTED 0x00000001 // This network is currently connected<br/>
#define WLAN_AVAILABLE_NETWORK_HAS_PROFILE 0x00000002 // There is a profile for this network<br/>
#define WLAN_AVAILABLE_NETWORK_CONSOLE_USER_PROFILE 0x00000004 // The profile is the active console users per user profile
the last flag looks just the right one but the actual value i get when im connect to encrypted networks is 3
checked on couple networks and the network im connected to always returns 3 in dwflags . that looks like it actually works that way but i cant find anywhere what does that means and im little afraid that might mess something up.
can anyone help me with that?
View the full article