Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Logoff MyApp = logoff network, How ???
Message
From
25/10/1999 09:54:16
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00279649
Message ID:
00280922
Views:
13
>>>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
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform