I want to log off when the user exits FiveWin application.
the code does not work:
viewtopic.php?f=3t=20856p=110754hilit=shutdown#p110754
&&&
I want to log off when the user exits FiveWin application.
the code does not work:
viewtopic.php?f=3t=20856p=110754hilit=shutdown#p110754
&&&
#Include "FiveWin.ch"
Function ShutDown_Main()
IF .NOT. MsgYesNo( "LogOff Windows?", "ShutDown Windows" )
RETURN NIL
ENDIF
WINEXEC( "SHUTDOWN /L" )
Return Nil
// Fim