DialHangUp Method
Class: FTP_SERVICE
Closes a dialup connection that was created from a DialInternet function call.
=
Object.DialHangUp
Parameter
lnConnectionID
Handle returned from the FTP_SERVICE::AutoDialInternet() Function Call.
Type Numeric
Direction Input
Return value Boolean
The return value is .T. if is disconnected from internet or .F. is not.
See also
Expand/Collapse source code of procedure DialHangUp Source Code
      LPARAMETERS lnConnectionID
      LOCAL fResult
      IF This.LoadAPIFuncs() != ERROR_SUCCESS
         RETURN .F.
      ENDIF

      IF TYPE("lnConnectionID") != "N"
         RETURN .F.
      ENDIF

      =This.BeforeDialHangUp(lnConnectionID)
      fResult = InternetHangUp(@lnConnectionID, 0)
      This.GetExtendedError()
      =This.AfterDialHangUp(lnConnectionID,fResult)
      RETURN fResult # 0