In my project I need to detect the idle state of wlan in windows 7, but failed because the class I use System.Net.NetworkInformation Namespace. NET.
The class specifies the operational state of the network interface: "Dormant, Down, LowerLayerDown, notPresent, Testing, Unknown, Up"
Link: http://msdn.microsoft.com/en-us/library/system.net.networkinformation.operationalstatus.aspx
None of these states seem to correspond to the idle state of wlan.
Researched how information of energy states but only found the. Net compact framework in: enum _CEDEVICE_POWER_STATE. Link: "msdn.microsoft.com/pt-br/library/aa932261.aspx
I tried to do a WMI query on "Win32_NetworkAdapter" link: "http://msdn.microsoft.com/en-us/library/windows/desktop/aa394216(v=vs.85).aspx" field "uint16 Availability" for "Meaning Value = 14 = Power Save - Low Power Mode" or "Value Meaning = 15 = Power Save - Standby" but the query only returns "value = 3 = Meaning Running or Full Power" even the network adapter off.