Use this function:
=Disable_Ctrl_Esc(.T.)
FUNCTION Disable_Ctrl_Esc(SPI_SCREENSAVERUNNING)
SPI_SCREENSAVESTATUS=SPI_SCREENSAVERUNNING
DECLARE LONG SystemParametersInfo IN WIN32API LONG, LONG, LONG, LONG
=SystemParametersInfo( 97,SPI_SCREENSAVESTATUS, 1, 0)
RETURN
ENDFUNC
to avoid the user to close your program, in the config.fpw file, write:
NoClose = on
If you are worry about rebooting (It´s only posible pressing reset button), you can set your program in regedit:
HKEY_LOCAL_MACHINE/Software/Microsoft/Windows/CurrentVersion/Run
If you establish your program here, you force it to auto run on startup.
By two common phrases in his vocabulary, we know Hercule Poirot was a great Developer: his use of "the little grey cells" and "order and method".