Results 1 to 2 of 2

Thread: Kill Connection

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2000
    Posts
    45

    Question Kill Connection

    Hi
    I did a small program in VB that will shot down my computer in a certain time of the day, but the problem is that I have other computers that connected to my computer by sharing.
    When I’m doing shot down I’m getting message that say “You have 1 user connected to your computer. Shutting down your computer will disconnect them. Do you wont to continue”, than I have YES or NO and I need to choose YES to shot down but I’m not in the places to do it, and I wont the program to do it for me.

    1.How can I avoid this message by killing all the connection first
    Is there any API that kills all the connection?
    2.Or how can I choose YES in the sharing message box?

    Thanx for any help


    VB6 SP5
    VBmaster

  2. #2
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238
    perhaps you can force the computer to shutdown no matter in what condition...

    VB Code:
    1. ExitWindowsEx EWX_FORCE Or EWX_SHUTDOWN, 0
    regards,

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