Click to See Complete Forum and Search --> : Sending data through winsock...
Gazz
Nov 9th, 1999, 06:32 PM
Can someone tell me how to send a shutdown command to a remote computer through Winsock?? I can't even connect at the moment so any help would be appreciated.
Cheerz, Gazz....
------------------
Don't let your fears stand in the way of your dreams.
smalig
Nov 10th, 1999, 08:38 PM
If you use NT try InitiateSystemShutdown function.
InitiateSystemShutdown(lpMachineName, lpMessage, dwTimeout, bForceAppsClosed, bRebootAfterShutdown)
------------------
smalig
smalig@hotmail.com
smalig.tripod.com (http://smalig.tripod.com)
Serge
Nov 10th, 1999, 08:57 PM
InitiateSystemShutdown API will work only on NT. Besides, you have to have the other computer running your program (listen to the arriving data).
Regards,
------------------
Serge
Software Developer
Serge_Dymkov@vertexinc.com
Access8484@aol.com
ICQ#: 51055819 (http://www.icq.com/51055819)
Compwiz
Nov 10th, 1999, 10:49 PM
I just made a simple server that does this... It works, but has a few bugs which you can work out, but like I said it works.
ftp://compwiz.tzo.com/pub/ShutdownServer.zip
Please lemme know if this works! e-mail or re-post! Thanx.
------------------
Tom Young, 14 Year Old
tyoung@stny.rr.com
ICQ: 15743470
AIM: TomY10
PERL, JavaScript and VB Programmer
[This message has been edited by Compwiz (edited 11-11-1999).]
jimdalby
Nov 11th, 1999, 12:17 AM
Email me, i have a server/client program that definetly works on win95 and 98
ill send it 2 u.
------------------
jimmy
ICQ:35813919
mail:jim@rdalby.f9.co.uk
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.