I want my program to reboot my computer and my code:
my module:Code:Private Sub Command1_Click() Dim retval As Long ' return value retval = ExitWindowsEx(EWX_FORCE Or EWX_REBOOT, 0) End Sub
i try it with a look upCode:Public Declare Function ExitWindowsEx Lib "user32.dll" (ByVal uFlags As Long, ByVal dwReserved As Long) As Long
and my return value(retval) = 1, so it's suppose to reboot but it's not, WHY????????




Reply With Quote