HangUp

Hangs-up a dial-up connection.

Function Group Execution Windows Embedded Thin Client
HangUp Dial-up Synchronous Supported (see note) Supported Supported
Note: This function is not supported on Windows 7.

Syntax

HangUp( numType, strPhonebookEntryOrModem )
numType
A numeric flag that specifies the content of the strPhonebookEntryorModem parameter.
  • 0: Phonebook Name
  • 1: Modem Name
  • 2: Direct Connection Name
strPhonebookEntryOrModem
The Phonebook Name, Modem Name, or Direct Connection Name used to make the connection. The numType parameter specifies which of these methods is used.

Returned value

0 OK.
-1 Error: INDRAS.DLL not found
-2 Error: INDRAS.DLL damaged
-3 Invalid value for the numType parameter (0 or 1)
-4 PhoneBook or modem does not exist
-5 No configured modems exist

Examples

Tag Name Expression
Tag HangUp( 0, "OfficeDialup" )
Tag HangUp( 1, "USRobotics_SportsterFaxModem" )
Tag HangUp( 2, "DirectDial", "Rberton", "MyPassword" )

See also: FindModem()