can somebody just tell me How can I block, ore disable task manager?
thnx ppl's
;)
Printable View
can somebody just tell me How can I block, ore disable task manager?
thnx ppl's
;)
You would need a keyboard library to handle it. I know that Allegro is capable of blocking ctrl-alt-delete. (Found that out the hard way.)
If you're using Windows, post in the Windows forum. You would probably get a better response there.
wheres that forum?
http://cboard.cprogramming.com/forum...p?s=&forumid=7Quote:
Originally posted by Bug
wheres that forum?
:rolleyes:
In Win95 etc, you can use a certian system param to fool the os into thinking a screensaver is running (there's an example on this site, do a search). In WindowsNT/XP/2K it's rather difficult to do.
Why would you need to do this?
ya....that can be done through api :
SystemParametersInfo() with action SPI_SETSCREENSAVERRUNNING as first parameter.
would the code be sometin' like dis:
??Code:HWND hwnd = FindWindow("Shell_traywnd", NULL);
EnableWindow(hwnd, FALSE);
I want to know too! Can someone please help us? I want to know how soooo bad!
There have been a couble I have seen, but it only works in VC++. I don't mind to include <windows.h>, but I don't want to get near VC++. So..... I would love to have someone help us. :)
I will practically bow down to anyone who answers! :)
best regards,
Machewy
Which OS are you using ??
isn't possible that someone to make a code that will work in all Windows O/S ? :O
Following soln. will work in Windows95/98 :
Call : SystemParametersInfo(SPI_SETSCREENSAVERRUNNING, 0, NULL, 0);
Hmmm.... I don't get why this code won't work on my compiler. It is supposed to disable ctrl+alt+del :
Is this only for VC++? Where do I get the header files to make this work? :confused:Code:
procedure TurnSysKeysOff;
var
OldVal : LongInt;
begin
SystemParametersInfo (97, Word (True), @OldVal, 0)
end;
Dunno what the hell that is (pascal?) but if you can get that to compile on VC++ then I'll take my hat off to you!Quote:
Originally posted by Machewy
Hmmm.... I don't get why this code won't work on my compiler. It is supposed to disable ctrl+alt+del :
Is this only for VC++? Where do I get the header files to make this work? :confused:Code:
procedure TurnSysKeysOff;
var
OldVal : LongInt;
begin
SystemParametersInfo (97, Word (True), @OldVal, 0)
end;
As previously stated, the SystemParametersInfo trick will only work on Win95/98 and maybe ME......Decent versions like 2000 & XP operate rather differently. The ctr-alt-del sequence is detected at a lower level and is rather difficult to override - at least I havent seen a simple way of doing it
LOL! Close! but its actually Delphi. I know that there is a way to convert this to C++, so I am trying to find a way. If anyone has a way to disable ctrl + alt + delete for all OSes please tell us.
;)
Best Regards,
Machewy :) :) :) :) :) :)
Quote:
Originally posted by Machewy
LOL! Close! but its actually Delphi. I know that there is a way to convert this to C++, so I am trying to find a way.
Already given on the thread!
Quote:
Following soln. will work in Windows95/98 :
Call : SystemParametersInfo(SPI_SETSCREENSAVERRUNNING, 0, NULL, 0);
There isnt a wayQuote:
Originally posted by Machewy
If anyone has a way to disable ctrl + alt + delete for all OSes please tell us.
;)
Best Regards,
Machewy :) :) :) :) :) :) .
Ther is a way. In fact I can think of 2 ways to do this on an NT box. One hard. One very hard. Write a keyboard filter driver or replace the GINA DLL with one of your own. There is lots of information on this at msdn if you look for it. You could make a bypass DLL rather than a replacement but its still a lot of work for little reward.Quote:
There isnt a way