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