Enable/disable <Alt-Tab>

Hi,

I use the following function which enable/disable the following key combinations
<Ctrl-Alt-Del>
<Ctrl-esc>
<Alt-s>
<Alt-Tab>


Private Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, ByVal lpvParam As Any, ByVal fuWinIni As Long) As Long

Sub DisableCtrlAltDelete(bDisabled As Boolean)
    Dim x As Long  

    x = SystemParametersInfo(97, bDisabled, CStr(1), 0)
End Sub
 
Now I want to make <Alt-Tab> to be
enabled & rest other disabled.

Kindly let me know the solution.

Thanking you
regards

Vipul Shah
vipul_virajAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mcriderCommented:
This Microsoft KB article should solve your problem...

HOWTO: Block CTRL+ALT+DEL and ALT+TAB in Windows 95 or Windows 98
http://support.microsoft.com/support/kb/articles/Q161/1/33.asp 

Cheers!
0
mcriderCommented:
Also see...

PRB: Windows 95/98 Ignores ALT+TAB from SendKeys in VB
http://support.microsoft.com/support/kb/articles/Q129/8/39.asp 
 
Cheers!
0
vipul_virajAuthor Commented:
The solution was already been framed
with codes as my question to you

The solution provided disables
both <Ctrl-Alt-Del> & <Alt-Tab>

WHAT I WANT IS

disable -----> <Ctrl-Alt-Del>
  &
enable  -----> <Alt-Tab>

0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

vipul_virajAuthor Commented:
The solution was already been framed
with codes as my question to you

The solution provided disables
both <Ctrl-Alt-Del> & <Alt-Tab>

WHAT I WANT IS

disable -----> <Ctrl-Alt-Del>
  &
enable  -----> <Alt-Tab>

0
mcriderCommented:
I wanted you to read both articles.

<Ctrl-Alt-Del> & <Alt-Tab> are BOTH enabled and disabled with the same API.  There is no API to disconnect one or the other.

Also the second article tells you you can not send ALT-TAB to the operating system in 95/98 systems.


Cheers!
0
vipul_virajAuthor Commented:
O.K.
Can I assign HOTKEY's to no. of application to activate on press of a
designated key's for each application,
WHILE DISABLING both <Ctrl-Alt-Del> & <Alt-Tab>.


0
mcriderCommented:
When <Ctrl-Alt-Del> & <Alt-Tab> are disabled, they are not passed on to VB... You can't accept them in the KeyDown/KeyUp events.
0
vipul_virajAuthor Commented:
O.K.

Is there any way to disable processing of the START BUTTON on the TASK BAR
(i.e <Ctrl-Exc> or <Alt-S>) and
still work with <Alt-Tab>


0
mcriderCommented:
Sorry, but no...

Cheers!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.