Retrieves a value indicating whether the system is online.
HRESULT IOmNavigator::get_onLine(VARIANT_BOOL *p);
- Pointer to a variable of type VARIANT_BOOL that receives one of the values listed in Possible Values.
VARIANT_TRUE System is online. VARIANT_FALSE System is offline.
Returns S_OK if successful, or an error value otherwise.
In Windows Internet Explorer 8 and later, the IOmNavigator::onLine property returns
trueif both of the following conditions are true:
If either of these conditions is false, the IOmNavigator::onLine property returns
- the system is able to communicate with the network
- the system is not in global offline mode (Users can modify the global offline state by choosing Work Offline on the File menu.)
In Microsoft Internet Explorer 4.0 through Windows Internet Explorer 7, the IOmNavigator::onLine property indicates whether the system is in global offline mode. It does not indicate whether the system can communicate with the network.