Results 1 to 2 of 2

Thread: Nt and shutdown

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Location
    Florence
    Posts
    1
    How can I shutdown NT from VB ? look that the classical way used for win9x do not work
    thanks...
    Fabio

  2. #2
    Guest
    Code:
    Private Declare Function ExitWindowsEx Lib "user32" (ByVal uFlags As Long, ByVal dwReserved As Long) As Long
    
    Private Sub Command1_Click()
        ExitWindowsEx 5, 0
    End Sub

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