Paul
I have added (tried) another line which might just cover the extra base
where disabling Alt-Tab does not seem to work on win2000. I've yet to test
it on the offending machine. I'll let you know.
Disable:
SystemParametersInfo(SPI_GETFASTTASKSWITCH,1,@Dummy,0);//new attempt
disable Alt-TAb
SystemParametersInfo(SPI_SETFASTTASKSWITCH,1,@Dummy,0);//Disable Alt-Tab
SystemParametersInfo(SPI_SCREENSAVERRUNNING,1,@Dummy,0);//Disable
Ctrl-Alt-Del
ShowWindow((FindWindowEx(0, 0, PChar('Shell_TrayWnd'), PChar(''))),
SW_HIDE);//Hides task bar
and restoring
SystemParametersInfo(SPI_GETFASTTASKSWITCH,0,@Dummy,0);//new attempt
restore Alt-TAb
SystemParametersInfo(SPI_SETFASTTASKSWITCH,0,@Dummy,0);//Restore Alt-Tab
SystemParametersInfo(SPI_SCREENSAVERRUNNING,0,@Dummy,0);//Restore
Ctrl-Alt-Del
ShowWindow((FindWindowEx(0, 0, PChar('Shell_TrayWnd'), PChar(''))),
SW_RESTORE);
Warning - don't experiment disabling the task bar without also enabling on
closing. Else doing anything (like shutting down) is ... well, I just had to
switch off.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Paul Lowman
Sent: Wednesday, 23 May 2001 03:37 p.m.
To: Multiple recipients of list delphi
Subject: Re: [DUG]: alt tab
Graham
I was intrigued by your posting so decided to try this myself - what I found
in the help was this -
SPI_GETFASTTASKSWITCH
This flag is obsolete. Previous versions of Windows use this flag to
determine whether ALT+TAB fast task switching is enabled. Beginning with
Windows 95 and Windows NT version 4.0, fast task switching is always
enabled.
So is it actually possible to disable this.
I need to know as I am about to do a piece of code that the user cannot get
out of (presumably the same sort of requirement you have ?)
---------------------------------------------------------------------------
New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"