>>>Hi
>>>
>>>My users all use the same login script ( NT 4.0 ) which installs updates if there are any...
>>>
>>>I want to force a network logoff when they exit the app to ensure that they re-run the login script before running the app again...
>>>
>>>Any way ???
>>
>>
>>Sure - use the ExitWindowsEx() API call to force Windows to log out and log back in.
>
>Would this be effectively the same as selecting "Logoff" from the Start menu?? Because, if it is, then it will not work. Selecting "Logoff" doesn't logoff if my app is running... Hmmm, do I need something in an ON SHUTDOWN clause?
>
You can add a flag value (EWX_FORCE) to the API call that will force all running apps to terminate.
>TIA