Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The get_IsConnectedToInternet property specifies if the local machine has internet connectivity.
Syntax
HRESULT get_IsConnectedToInternet(
  [out] VARIANT_BOOL *pbIsConnected
);
Parameters
[out] pbIsConnected
If TRUE, the local machine is connected to the internet; if FALSE, it is not.
Return value
Returns S_OK if successful.
Requirements
| Requirement | Value | 
|---|---|
| Minimum supported client | Windows Vista [desktop apps only] | 
| Minimum supported server | Windows Server 2008 [desktop apps only] | 
| Target Platform | Windows | 
| Header | netlistmgr.h |