General information
Category:
Windows API functions
>>Sorry,
>> Forgot to show the statement...:(
>> set library to foxtools
>> #DEFINE EWX_SHUTDOWN 1
>> getout=regfn("ExitWindowsEx","II","I")
>> =CALLFN(getout,EWX_SHUTDOWN,0)
>
>This happens if you answer no to the save data messagebox.
You mean Cancel, probably.
>You can add EWX_FORCE (4) to the 2nd parameter to force the shutdown to happen. However, you could potentially lose unsaved data because it does not send WM_QUERYENDSESSION or WM_ENDSESSION messages to open applications.
Also, this can result in temp files not deleted, files not closed, cross-linked files, etc.
Vlad
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