logoff FiveWin application

logoff FiveWin application

Postby MGA » Tue Feb 03, 2015 6:36 pm

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
ubiratanmga@gmail.com

FWH18.02
FWPPC
Harbour/xHarbour
xMate
Pelles´C
TDolphin
MGA
 
Posts: 1238
Joined: Mon Feb 25, 2008 2:54 pm
Location: Brasil/PR/Maringá

Re: logoff FiveWin application

Postby karinha » Tue Feb 03, 2015 7:05 pm

Code: Select all  Expand view

#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
User avatar
karinha
 
Posts: 7633
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 39 guests