Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Force a logoff when exiting app?
Message
From
21/03/2000 13:03:39
 
 
General information
Forum:
Visual FoxPro
Category:
Visual ProMatrix
Miscellaneous
Thread ID:
00348471
Message ID:
00348491
Views:
20
>Hi,
>
>I found the following code here on the UT:
>
>***************************
>* force user to logoff of network
>DECLARE INTEGER ExitWindowsEx IN Win32API INTEGER nFlags, INTEGER Reserved
>DECLARE INTEGER ExitProcess IN Win32API INTEGER nExitCode
>CLOSE ALL
>FLUSH
>=ExitWindowsEx(4,0)
>=ExitProcess(0)
>***************************
>
>Has anyone used this with VPM? Where would I put the code?
>

I have not used it with VPM, but it should be a direct substitution for QUIT.
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
Next
Reply
Map
View

Click here to load this message in the networking platform