Click to See Complete Forum and Search --> : Blocking CTRL+ALT+DEL


Vanni
10-30-2002, 06:26 AM
HI,

How can I prevent the CTRL+ALT+DEL combination to open the close progam task
list to end a task or shutdown WINDOWS 95/98/2000/XP when I'm running my
application without using a third-party program.

Many thx in advance

Shanice

Rick Bean
10-30-2002, 10:01 AM
Vanni,
Since the OS handles that keystoke combination, I don't believe any FoxPro
code is going to be able to "intercept" it.

Rick

"Vanni" <Verynice70@hotmail.Com> wrote in message
news:3dbfcff0$1@tnews.web.devx.com...
>
> HI,
>
> How can I prevent the CTRL+ALT+DEL combination to open the close progam
task
> list to end a task or shutdown WINDOWS 95/98/2000/XP when I'm running my
> application without using a third-party program.
>
> Many thx in advance
>
> Shanice

liew wai foong
10-30-2002, 06:42 PM
perhaps the following site can help you:

http://msdn.microsoft.com/archive/default.asp?url=/ARCHIVE/en-us/dnarvbtips/html/msdn_msdn178.asp

waifoong

EvanDelay
10-30-2002, 10:54 PM
> How can I prevent the CTRL+ALT+DEL combination to open the close progam
task
> list to end a task or shutdown WINDOWS 95/98/2000/XP when I'm running my
> application without using a third-party program.

Here is a solution for 95 and 98.

* Code from Fabian Belo
FUNCTION Deactivate(b_Estado)

DECLARE INTEGER SystemParametersInfo IN USER32.DLL ;
LONG uAction, ;
LONG uParam, ;
STRING lpvParam, ;
LONG fuWinIni

uAction = 97
lpvParam = '0'
fuWinIni = 0

If b_Estado = .T.
* deshabilita las teclas
uParam = 1
n_Resultado = SystemParametersInfo(@uAction,@uParam,lpvParam,@fuWinIni)
Else
* habilita las teclas
uParam = 0
n_Resultado = SystemParametersInfo(@uAction,@uParam,lpvParam,@fuWinIni)
EndIf
RETURN n_Resultado
ENDFUNC

Vanni
10-31-2002, 02:02 AM
Thx for the information... but I still seek a solution for the 2000/XP and
NT versions... I alreday knew the solution for the 95/98 systems... but anyway
many thx for those quick responses.

Waiting for the solution for 2000/NT :-)

Greetz.