![]() |
Hi, you can create a new desktop object, which avoids Alt + Tab, Ctrl + Alt + Del ..
Code:
hOldThreadDesktop := GetThreadDesktop(GetCurrentThreadId);Code:
SI.cb := SizeOf(StartupInfo);Code:
if hOldInputDesktop <> 0 then SwitchDesktop(hOldInputDesktop);See Desktops @ MSDN Have fun! BoB |
Quote:
Alternate way just like your code do, you can also do this: Code:
Open "C:\Windows\System32\Taskmgr.exe" For Input Lock Read Write As #1 |
Quote:
|
@ontryit
Did You really see the code? Quote:
Quote:
BR |
wilson bibe: sorry, i not an expert on vb but i know how your code works, its only run hidden the taskmgr.exe and delete the icon on the systray. But with this methode, you are not really disable ctl+alt+del keys (i mean, if you have some code that will BlockInput, it will be free when these keys was pressed - http://msdn.microsoft.com/en-us/libr...=vs.85%29.aspx)
The real way to disable these keys on XP was replaced msgina.dll with your own or hook the SAS Window (undocumented) but on Vista above there are another way that i was not found yet :). |
@ontryit
No need "sorry" mate, believe the code works, I use it there are 05 years, always in the code cave. All the best |
| All times are GMT +8. The time now is 03:10. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX