Results 1 to 2 of 2

Thread: using shutdown DLL

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2001
    Location
    delhi
    Posts
    22

    Question using shutdown DLL

    hi,
    I want to shut down my system by making a program on clicking on a command button. Please explain it briefly.

    thanx
    Pranav

  2. #2
    Matthew Gates
    Guest
    Use the ExitWindowsEx API function.


    VB Code:
    1. Private Declare Function ExitWindowsEx Lib "user32" _
    2. (ByVal uFlags As Long, ByVal dwReserved As Long) As Long
    3.  
    4. Private Sub Command1_Click()
    5.     ExitWindowsEx(1 Or 4, 0)
    6. 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