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:
00513097
Views:
17
PMFJI, but this only works on Win9X machines (possibly ME too). It does not work on NT/2000.

>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.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform