Results 1 to 2 of 2

Thread: Disconnect From Dial-Up Connection

  1. #1

    Thread Starter
    Junior Member
    Join Date
    May 2000
    Posts
    24
    Does anyone know a function that will hang up my modem from a dial-up connection with my ISP? Possibly with winsock or something? I know my modem disconnect string, if there is a way to give commands directly TO modem rather than THROUGH the modem. Thanks.

    -CD

  2. #2
    Lively Member
    Join Date
    Apr 2000
    Location
    Hell
    Posts
    89
    This may be useful:

    --------------------------------------------------------

    InternetHangUp Function

    --------------------------------------------------------

    Instructs the modem to disconnect from the Internet.

    Syntax

    DWORD InternetHangUp(
    IN DWORD dwConnection,
    IN DWORD dwReserved
    );


    dwConnection
    Unsigned long integer value that contains the number assigned to the connection to be disconnected.
    dwReserved
    Reserved. Must be set to zero.

    Code:
    Declare Function InternetHangup Lib "wininet" (ByVal dwConnection As Long, ByVal dwReserved As Long) As Long


    Try InternetHangup(0, 0)

    - Steve

    Real programmers use COPY CON PROGRAM.EXE

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width