PhoneHangUp
Hangs up a dial-up connection previously established with the PhoneDialUp function.
Function
| Group
| Execution
| Windows
| Embedded
| Thin Client
| Mobile Access
|
PhoneHangUp | Dial-up
| Asynchronous
| Supported (see note)
| Not supported
| Supported
| Not supported
|
Note: This function is not supported on Windows 7.
Syntax
PhoneHangUp( optStrModemName )
- optStrModemName
- Name of the modem used to dial. If you do not specify a modem, the function will use the first modem found on the operating system.
Returned value
1
| OK (dial connection was dropped)
|
−1
| INDTAPI.DLL library not found
|
−2
| PhoneHangUp () function not supported by the current INDTAPI.DLL library
|
Examples
Tag Name
| Expression
|
| PhoneHangUp() |
| PhoneHangUp( “Hayes Compatible Modem on COM1″ ) |
| PhoneHangUp( StringModemNameTag ) |
PhoneHangUp