computer restart!!!

i want a code for restart?


  • : i want a code for restart?
    you should search throught the api viewer that comes with vb6, really cool stuff in there. but heres the code! someone help me on the actual flags to reboot, ie ExitWindowsEx 0,1

    Public Declare Function ExitWindowsEx Lib "user32" Alias "ExitWindowsEx" (ByVal uFlags As Long, ByVal dwReserved As Long) As Long

    private sub btnRestart_Click()
    ExitWindowsEx N,N
    ' The N's being the flags to logoff or reboot the computer
    end sub
Sign In or Register to comment.

Howdy, Stranger!

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


In this Discussion