| Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next 1 | 1. Hide from task manager #1166 Posted by: 2004-02-29 06:24:00 | Hi
I need to make a program that doesn't appear in the task manager, so you won't be able to close it with CTRL+ALT+DEL. I know there is a way, because I have done it before with a code someone posted long ago, but the old forum from Ezboard got spammed and all that information got lost. Please help ! | 2. Re: Hide from task manager #1167 Posted by: 2004-02-29 11:48:47 | it only works in windows 9x i always disabled ALT+CTL+DEL to use SystemParametersInfo API (it only works in windows 9x) what to do is following..
DECLARE SUB SystemParametersInfo LIB "user32" ALIAS "SystemParametersInfoA" _ (ByVal uAction As Long, ByVal uParam As Long, ByVal lpvParam As String, ByVal fuWinIni As Long)
const SPI_SCREENSAVERRUNNING = 97
to disable to CTR+ALT+DEL type to SystemParametersInfo(SPI_SCREENSAVERRUNNING ,1,1,0)
and then, enable to ALT+CTL+DEL type it SystemParametersInfo(SPI_SCREENSAVERRUNNING ,0,1,0)
then i will tell you how to hide from task bar (it only works in windows 9x) .
DECLARE SUB RegisterServiceProcess lib "kernel32" ALIAS "RegisterServiceProcess" _ (dwProcessId As Integer,dwType As Integer)
CONST RSP_SIMPLE_SERVICE = 1 CONST RSP_UNREGISTER_SERVICE = 0
to hide from task bar code it like to RegisterServiceProcess(0, RSP_SIMPLE_SERVICE)
to show , unregister service to RegisterServiceProcess(0, RSP_UNREGISTER_SERVICE)
oh goood!! it works....but i can't prevent ALT+F4 function on windows 9x...
| 3. Re: Hide from task manager #1168 Posted by: 2004-02-29 12:10:44 | sorry i mistyped .. not `taskbar' but `Task Maneger'
and please anyone tell me how to disable Ctl+Alt+Del on Windows XP..
ALt + Tab ,ad Alt +F4 can be disabled by using RegisterHotKey API on windows XP...
DECLARE FUNCTION RegisterHotKey LIB "USER32" ALIAS "RegisterHotKey" _ (hWnd AS LONG, ID AS LONG, fsModifiers AS LONG, _ vk AS LONG) AS LONG DECLARE SUB UnRegisterHotKey LIB "USER32" ALIAS "UnregisterHotKey" _ (hWnd AS LONG, ID AS LONG)
CONST MOD_CTRL = &H2 CONST MOD_SHFT = &H4 CONST MOD_ALT = &H1
to disable ....
IF RegisterHotKey(Form.Handle, 0, MOD_ALT, 115) = 0 THEN showMessage "ALT+F4 is already Used!!"
END IF
IF RegisterHotKey(Form.Handle, 1, MOD_ALT ,9) = 0 THEN
showMessage "ALT+TAB is already Used!!"
END IF
to enable....
UnRegisterHotKey(Form.Handle, 0) UnRegisterHotKey(Form.Handle, 1)
Thanks !!!
Tomonari,
| Forum List • Thread List • Reply • Refresh • New Topic • Search • Previous • Next 1 |
|
|