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