Results 1 to 5 of 5

Thread: Sending data through winsock...

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 1999
    Location
    Cardiff, Wales, United Kingdom
    Posts
    6

    Post

    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.

  2. #2
    Addicted Member
    Join Date
    Oct 1999
    Posts
    232

    Post

    If you use NT try InitiateSystemShutdown function.

    InitiateSystemShutdown(lpMachineName, lpMessage, dwTimeout, bForceAppsClosed, bRebootAfterShutdown)


    ------------------
    smalig
    [email protected]
    smalig.tripod.com

  3. #3
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    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
    [email protected]
    [email protected]
    ICQ#: 51055819


  4. #4
    Hyperactive Member
    Join Date
    Jul 1999
    Location
    NY, USA
    Posts
    270

    Post

    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
    [email protected]
    ICQ: 15743470
    AIM: TomY10
    PERL, JavaScript and VB Programmer


    [This message has been edited by Compwiz (edited 11-11-1999).]

  5. #5
    Lively Member
    Join Date
    Oct 1999
    Location
    Sheffield, Derbyshire, UK
    Posts
    68

    Post

    Email me, i have a server/client program that definetly works on win95 and 98
    ill send it 2 u.

    ------------------
    jimmy
    ICQ:35813919
    mail:[email protected]

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