Hi Stanley,
The following method works good.
#DEFINE EX_LOGOFF 0
#DEFINE EX_SHUTDOWN 1
#DEFINE EX_REBOOT 2
#DEFINE EX_FORCE 4
#DEFINE EX_POWEROFF 8
DECLARE SHORT ExitWindowsEx IN Win32API;
SHORT uFlags, INTEGER dwReserved
*=ExitWindowsEx(EX_LOGOFF,0) && equal to "=ExitWindowsEx(0,0)"
=ExitWindowsEx(EX_SHUTDOWN,0) && equal to "=ExitWindowsEx(1,0)"
*=ExitWindowsEx(EX_REBOOT,0) && equal to "=ExitWindowsEx(2,0)"
*=ExitWindowsEx(EX_FORCE,0) && equal to "=ExitWindowsEx(4,0)"
*=ExitWindowsEx(EX_POWEROFF,0) && equal to "=ExitWindowsEx(8,0)"
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only