Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

darkchrono4

Disabling Alt-Tab

This topic is 5517 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I know this has been asked a 1000 times already. But how do you disable alt-tab? I would tried to search for it but that seems to be down right now.

Share this post


Link to post
Share on other sites
Advertisement
Dear God...

http://www.google.ca/search?q=disable+alt+tab&ie=UTF-8&oe=UTF-8&hl=en&meta=

Share this post


Link to post
Share on other sites
http://www.experts-exchange.com/Programming/Programming_Platforms/Win_Prog/Q_10229593.html

try that link.. it looks like it''s pretty simple to disable.

Share this post


Link to post
Share on other sites
I know its lame, but I''m trying to protect some encypted files that much be decrypted while my app is running.

I got it to work in Win98 but it doesn''t in WinXP. Saw some code about using a keyboard hook but the procedure won''t compile for me. Is there something special that I have to do?

LRESULT CALLBACK LowLevelKeyboardProc (INT nCode, WPARAM wParam, LPARAM lParam)
{
KBDLLHOOKSTRUCT *pkbhs = (KBDLLHOOKSTRUCT *) lParam;
BOOL bControlKeyDown = 0;
switch (nCode)
{
case HC_ACTION:
{
bControlKeyDown = GetAsyncKeyState (VK_CONTROL) >> ((sizeof(SHORT) * 8) - 1); // Disable CTRL+ESC
if (pkbhs->vkCode == VK_ESCAPE && bControlKeyDown)
return 1;
// Disable ATL+TAB
if (pkbhs->vkCode == VK_TAB && pkbhs->flags & LLKHF_ALTDOWN)
return 1;
// Disable ALT+ESC
if (pkbhs->vkCode == VK_ESCAPE && pkbhs->flags & LLKHF_ALTDOWN)
return 1;
// Disable the WINDOWS key
if (pkbhs->vkCode == VK_LWIN || pkbhs->vkCode == VK_RWIN)
return 1;
break;
}
default:
break;
}
return CallNextHookEx (hHook, nCode, wParam, lParam);
}

Share this post


Link to post
Share on other sites
Unless you can figure out how to disable networking too, what use is disabling alt-tab? Penalizing users with only one computer? Just surrender to the fact that any data placed on the client machine can be tampered with, and hence WILL be tampered with.

Share this post


Link to post
Share on other sites
If you decrypt information on the client side, that means the client machine has the key somewhere, which means the user has the key. Even if you could find code to disable alt-tab on XP, it isn''t hard to make a program disable your disabler. Also, it isn''t hard to make a program monitor for new files and make a copy of any it finds. Even if you decrypted to RAM it wouldn''t be too difficult to get the decrypted data.

Allowing clients to decrypt the data means they also have the ability to see the unencrypted data. There isn''t much you can do about that.

Share this post


Link to post
Share on other sites
I'm not trying to protect the Kennedy files or anything. The keys for the files are in plain view. Just have to know what order they are used in and what to do with each. I'm just trying to keep the casual cheater from being able to see the decrypted mission files.

You don't have to get all NSA on me.

[edited by - darkchrono4 on May 7, 2003 5:37:51 PM]

Share this post


Link to post
Share on other sites
Actuall for some reason
SystemParametersInfo(SPI_SETSCREENSAVERRUNNING,TRUE,&b,0);
works while the app is running but if I start the game alt-tab works but ctrl-alt-delete doesn''t. I think that keyboard hook might be the way to go if I could figure it out.

Share this post


Link to post
Share on other sites
A casual cheater won''t be helped by being able to alt-tab out of your app. A determined cheater won''t be hindered by it. So what''s the point of doing it at all? You''re hurting your users and gaining nothing from it. Assuming you are able to find a comprehensive solution how much time did you waste doing it? How many users are you going to lose because when your app locked up they couldn''t alt-tab out to kill it?

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!