>Sorry,
> Forgot to show the statement...:(
> set library to foxtools
> #DEFINE EWX_SHUTDOWN 1
> getout=regfn("ExitWindowsEx","II","I")
> =CALLFN(getout,EWX_SHUTDOWN,0)
John,
I came across this tip in the Windows Platform newsletter. Like the force option of ExitWindowsEx it has the possibilty of lost data, file corruption, etc.
=======================================================================
KILL HUNG PROCESSES WHEN LOGGING OFF
When you tell Windows NT to shut down, it first sends shutdown requests to any running processes. Most 32-bit applications honor these requests and shut down, but older 16-bit apps running in the Virtual DOS Machine often won’t. When this occurs, the operating system prompts you with a dialog box asking if you want to kill the task, wait for the task to die on its own, or cancel the shutdown. By modifying the Registry, you can automate this process. You can force NT to kill all running processes on shutdown by adding a REG_SZ value named HKEY_USER\
\ControlPanel\Desktop\AutoEndTasks and set the value to 1. You can also add this value to HKEY_USERS\.DEFAULT so that all new accounts will shut down the same way.
==========================================================================