SET CLASSLIB TO FOXTOOLS
getout=regfn("ExitWindowsEx","II","I")
=CALLFN(getout,EWX_SHUTDOWN,0)
The values for 32 bit windows are:
#DEFINE EWX_LOGOFF 0
#DEFINE EWX_SHUTDOWN 1
#DEFINE EWX_REBOOT 2
#DEFINE EWX_FORCE 4
#DEFINE EWX_POWEROFF 8
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...