CTRL-ALT-DEL, ALT-TAB 
Author Message
 CTRL-ALT-DEL, ALT-TAB

..how i do in NT 4.0 (VB4 or VB5) for disabling CTRL-ALT-DEL, ALT-TAB
etc. ?

Thanks



Sun, 10 Mar 2002 03:00:00 GMT  
 CTRL-ALT-DEL, ALT-TAB

Quote:

>..how i do in NT 4.0 (VB4 or VB5) for disabling CTRL-ALT-DEL, ALT-TAB
>etc. ?

I know this works on Windows 98 in VB6; let me know if it works for you.
There may be a better way.  As you can see this call is specifically
designed for screen savers.

' Definitions
Public Const SPI_SCREENSAVERRUNNING = 97&
Declare Function SystemParametersInfo Lib "user32" Alias
"SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long,
lpvParam As Any, ByVal fuWinIni As Long) As Long

' Disable
SystemParametersInfo SPI_SCREENSAVERRUNNING, 1&, 0&, 0&

' Reenable
SystemParametersInfo SPI_SCREENSAVERRUNNING, 0&, 0&, 0&



Sun, 10 Mar 2002 03:00:00 GMT  
 CTRL-ALT-DEL, ALT-TAB
Something that you should be aware of in using this function is that it can
easily be broken. If you allow the screen saver to run momentarily after
using this function, you will discover that keys are no longer disabled.

Regards
Stanley Peck


Quote:


> >..how i do in NT 4.0 (VB4 or VB5) for disabling CTRL-ALT-DEL, ALT-TAB
> >etc. ?

> I know this works on Windows 98 in VB6; let me know if it works for you.
> There may be a better way.  As you can see this call is specifically
> designed for screen savers.

> ' Definitions
> Public Const SPI_SCREENSAVERRUNNING = 97&
> Declare Function SystemParametersInfo Lib "user32" Alias
> "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long,
> lpvParam As Any, ByVal fuWinIni As Long) As Long

> ' Disable
> SystemParametersInfo SPI_SCREENSAVERRUNNING, 1&, 0&, 0&

> ' Reenable
> SystemParametersInfo SPI_SCREENSAVERRUNNING, 0&, 0&, 0&



Mon, 11 Mar 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Disable ctrl+esc ctrl+alt+del alt+tab

2. CTRL-ALT-DEL, ALT-TAB

3. CTRL-ALT-DEL, ALT-TAB

4. Disable (Ctrl+Alt+Del),(Ctrl+Esc),(Alt+Tab) in NT

5. Block System Key like ALT+TAB, Ctrl+Alt+Del, Ctrl+Esc key

6. Disable (Ctrl+Alt+Del),(Ctrl+Esc),(Alt+Tab) in NT

7. Alt Tab and Ctrl Alt Del

8. Unable the use of Alt-Tab and Ctrl-Alt-Del

9. CTRL/ALT/DEL and ALT/TAb

10. How to block ALT+TAB and CTRL+ALT+DEL key

11. How to block ALT+TAB and CTRL+ALT+DEL key

12. Disable Ctrl Alt Del & Alt Tab

 

 
Powered by phpBB® Forum Software