i use ExitWindowsEx , doesnot work? :(
how does your code look like?
API Function
Declare Function ExitWindowsEx Lib "user32" Alias "ExitWindowsEx" (ByVal uFlags As Long, ByVal dwReserved As Long) As Long
use EWX_REBOOT for uFlags.
BTW, the calling process must have SE_SHUTDOWN_NAME privilege in order for this to work.
Declare Function ExitWindowsEx Lib "user32" Alias "ExitWindowsEx" (ByVal uFlags As Long, ByVal dwReserved As Long) As Long
use EWX_REBOOT for uFlags.
BTW, the calling process must have SE_SHUTDOWN_NAME privilege in order for this to work.
