http://www.vb-helper.com/HowTo/chkmodem.zip

	Purpose
See if the modem is connected

	Method
Use the RegQueryValueEx API function to examine the subkey value
System\CurrentControlSet\Services\RemoteAccess in the
HKEY_LOCAL_MACHINE section of the registry. Look at the Remote
Connection value.

Thanks to Bob Askey (askeyb@nwlink.com).

	Disclaimer
This example program is provided "as is" with no warranty of any kind. It is
intended for demonstration purposes only. In particular, it does no error
handling. You can use the example in any form, but please mention
www.vb-helper.com.
