Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

shutdown the system

veeravallyveeravally Member Posts: 6
dear friends

how to shutdown the system which is in LAN using VB.

waiting for reply
vvally

Comments

  • bgibbybgibby Member Posts: 251
    : dear friends
    :
    : how to shutdown the system which is in LAN using VB.
    :
    : waiting for reply
    : vvally
    :
    :

    Have a look at the ExitWindowsEx API call.
  • KDivad LeahcimKDivad Leahcim Member Posts: 3,948
    : : dear friends
    : :
    : : how to shutdown the system which is in LAN using VB.
    : :
    : : waiting for reply
    : : vvally
    : :
    : :
    :
    : Have a look at the ExitWindowsEx API call.
    :

    Since a LAN was mentioned, I assume it's not the current machine so ExitWindowsEx won't work. Take a look at InitiateSystemShutdown instead. I think it takes a machine's name as an arguement so you can specify the system to shut down.
  • bgibbybgibby Member Posts: 251
    : : : dear friends
    : : :
    : : : how to shutdown the system which is in LAN using VB.
    : : :
    : : : waiting for reply
    : : : vvally
    : : :
    : : :
    : :
    : : Have a look at the ExitWindowsEx API call.
    : :
    :
    : Since a LAN was mentioned, I assume it's not the current machine so ExitWindowsEx won't work. Take a look at InitiateSystemShutdown instead. I think it takes a machine's name as an arguement so you can specify the system to shut down.
    :

    Ah...good point!

  • john23john23 Member Posts: 1
    Hi. i just want to create a form with a button command1 and when i select it the windows is shuting down. how can i do that?
  • Justin BibJustin Bib USAMember Posts: 0

    _______ / http://forcoder.org / free ebooks and video tutorials about / Swift C Visual Basic .NET Ruby MATLAB PL/SQL Scratch R Visual Basic Perl JavaScript C# PHP C++ Go Delphi Objective-C Assembly Python Java Scala ABAP Prolog Logo Scheme ML COBOL FoxPro Kotlin D Clojure SAS Alice Lua F# Erlang Fortran Rust Transact-SQL Ada Awk Crystal Hack Dart Lisp LabVIEW Bash VBScript Julia Apex / _________

Sign In or Register to comment.