|
-
Aug 6th, 2001, 10:04 PM
#1
Thread Starter
Member
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
-
Aug 7th, 2001, 05:58 AM
#2
PowerPoster
perhaps you can force the computer to shutdown no matter in what condition...
VB Code:
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|