Accessing wifi hardware status via Microsoft.WindowsMobile.Status.SystemState
The State and Notification Broker in WM6 supports the following new properties (not present in WM5 SDK)
* BluetoothStateA2DPConnected
* BluetoothStateDiscoverable
* BluetoothStateHandsFreeAudio
* BluetoothStateHandsFreeControl
* BluetoothStateHardwarePresent
* BluetoothStatePowerOn
and
* WiFiStateConnected
* WiFiStateConnecting
* WiFiStateHardwarePresent
* WiFiStateNetworksAvailable
* WiFiStatePowerOn
To use these properties, you must add a reference to Microsoft.WindowsMobile.Status found in C:Program FilesWindows Mobile 6 SDKManaged LibrariesMicrosoft.WindowsMobile.Status.dll (that is, the WM6 SDK), and not another DLL having the same name found in C:Program FilesWindows CE Toolswce500Windows Mobile 5.0 Pocket PC SDKDesignTimeReferencesMicrosoft.WindowsMobile.PocketOutlook.dll (which is for WM5 SDK). If you mistakenly add the WM5 SDK’s DLL, you won’t be able to access these properties.
Reference: