Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to deactivate ctrl alt del on W2K or XP
Message
From
02/10/2002 16:11:36
Fabian Belo
Independent Developer
Argentina
 
 
To
02/10/2002 12:15:01
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00706928
Message ID:
00707068
Views:
40
Nice function (API):
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
Usage: Deactivate (.T.), Deactivate (.F.)
"Since I've read that alcohol is bad... I quit reading."
Me


http://www.fabianbelo.com.ar
Previous
Reply
Map
View

Click here to load this message in the networking platform