Results 1 to 2 of 2

Thread: How to hang up a modem, that is already in use?

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2002
    Location
    in
    Posts
    40

    How to hang up a modem, that is already in use?

    How to hang up a modem, that is already in use?

    I know the modem COM port number.
    It is connected using Win2k RAS (remote users are connected to the PC)
    How can I disconnect them?!
    Is there any RAS API?
    Can I use modem driver to hang up it?

    Thanks.
    Last edited by fatehi; Apr 19th, 2007 at 08:46 AM. Reason: some grammar mistakes
    A.B.Fatehi
    Microsoft Certified Professional

  2. #2
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: How to hang up a modem, that is already in use?

    Declare Function RasHangUp Lib "rasapi32.dll" Alias "RasHangUpA" (ByVal hRasConn As Long) As Long
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

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