Results 1 to 3 of 3

Thread: Shutting Down Network Computer

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2001
    Location
    Sri Lanka
    Posts
    1

    Shutting Down Network Computer

    Is it possible to shut down a network connected computer by using VB 6

    If so what could be the coding

    email me thank you

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    It's InitiateSystemShutdown. It will work with NT/2000 machines, but probably requires Admin rights when attempting to use.

    VB Code:
    1. Public Declare Function InitiateSystemShutdown Lib "advapi32.dll" Alias "InitiateSystemShutdownA" (ByVal lpMachineName As String, ByVal lpMessage As String, ByVal dwTimeout As Long, ByVal bForceAppsClosed As Long, ByVal bRebootAfterShutdown As Long) As Long
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    Are you talking about shutting down NT workstations or
    Win95/98 workstations?

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