Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hide Windows Task Bar
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00512043
Message ID:
00512969
Views:
12
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".
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform