FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour logoff FiveWin application
Posts: 1286
Joined: Mon Feb 25, 2008 02:54 PM
logoff FiveWin application
Posted: Tue Feb 03, 2015 06:36 PM

I want to log off when the user exits FiveWin application.

the code does not work:

viewtopic.php?f=3t=20856p=110754hilit=shutdown#p110754

&&&

ubiratanmga@gmail.com

FWH24.04
BCC7.3
HARBOUR3.2
xMate
Pelles´C
TDolphin
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: logoff FiveWin application
Posted: Tue Feb 03, 2015 07:05 PM
Code (fw): Select all Collapse
#Include "FiveWin.ch"

Function ShutDown_Main()

   IF .NOT. MsgYesNo( "LogOff Windows?", "ShutDown Windows" )

      RETURN NIL

   ENDIF
                                                                   
   WINEXEC( "SHUTDOWN /L" )

Return Nil

// Fim


João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341

Continue the discussion