Platform SDK: Synchronization Manager |
Determines whether the local system is connected to a network and the type of network connection, for example, LAN, WAN, or both.
Bool IsNetworkAlive( LPDWORD lpdwFlags // Specifies the type of network connection );
This function can be used by applications to determine whether there is network connectivity before proceeding with network operations. Applications such as directory service applications, e-mail clients, or Internet browsers can adapt to various types of network connectivity. For example, a printing operation can be deferred until the network connection is available.
Note This function is only available for TCP/IP connections.
Windows NT/2000: Requires Windows 2000 (or Windows NT 4.0 with Internet Explorer 5 or later).
Windows 95/98: Requires Windows 95 or later (with Internet Explorer 5 or later).
Header: Declared in Sensapi.h.
Library: Use Sensapi.lib.
Unicode: Implemented as Unicode and ANSI versions on Windows NT/2000.
IsDestinationReachable, About System Event Notification Service