
Disabling ALT-TAB switching with screen saver?
The SystemParameterInfo API Call can disable the CTRL ALT DEL and
ALT+TAB sequence. This is achieved by setting the mode as Screen Saver
on form load.
Public Declare Function SystemParametersInfo& Lib "user32" Alias _
"SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long,
lpvParam _
As Any, ByVal fuWinIni As Long)
'-- Turn ON ScreenSaver mode.
lRet = SystemParametersInfo(SPI_SCREENSAVERRUNNING, True, lpvParam,
0)
'-- Turn OFF ScreenSaver mode.
lRet = SystemParametersInfo(SPI_SCREENSAVERRUNNING, False, lpvParam,
0)
This should do the trick.
Ricardo H.Marshall
Project Leader
Quote:
> -----Original Message-----
> Posted At: Thursday, March 26, 1998 5:36 PM
> Posted To: misc
> Conversation: Disabling ALT-TAB switching with screen saver?
> Subject: Disabling ALT-TAB switching with screen saver?
> I'd like to disable ALT-TAB switching so people can't switch out of
> the password-protected screen saver I'm writing...any ideas?
> Mucho TIA,
> Brent P. Newhall