>I saw several articles in the knowledge base regarding restarting/exiting windows95/98 from VFP. However, the articles do not state if there is some method to force a station logoff (as opposed to a complete restart or shutdown). Is there any way to force a station logoff?
The API call ExitWindowsEx() can force a shutdown of all user applications and initiate the Logon New user Dialog, but the VFP app will get killed along with everything else.
DECLARE INTEGER ExitWindowsEx IN WIN32API ;
INTEGER uFLags, ;
INTEGER nReserved
=ExitWindowsEx(0,0)