D doolii Unregistered / Unconfirmed GUEST, unregistred user! 2003-09-23 #1 老话重谈,到底有没有人实现2000下屏蔽Ctrl+Alt+Del键,如何实现?
G geluyx Unregistered / Unconfirmed GUEST, unregistred user! 2003-09-23 #2 c的源码我有,delphi的没改过来。<br>我用了另外一个方法,不停查找taskmgr.exe,有的话将此进程关掉,这样别人也同样用不了CTRL+ALT+DEL。
G geluyx Unregistered / Unconfirmed GUEST, unregistred user! 2003-09-23 #3 procedure StopTaskmgr;<br>var<br> p: pProcessInfo;<br> ContinueLoop: BOOL;<br> FSnapshotHandle, hProcess: THandle;<br> FProcessEntry32: TProcessEntry32;<br> n: integer;<br>begin<br> n:=1;<br> New(p);<br> FSnapshotHandle:=CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,0);<br> FProcessEntry32.dwSize:=Sizeof(FProcessEntry32);<br> ContinueLoop:=Process32First(FSnapshotHandle,FProcessEntry32);<br> while integer(ContinueLoop)<>0 do<br> begin<br> p.ExeFile:= FProcessEntry32.szExeFile;<br> inc;<br> if UpperCase(p.ExeFile)='TASKMGR.EXE' then<br> begin<br> hProcess := OpenProcess(PROCESS_ALL_ACCESS, FALSE,FProcessEntry32.th32ProcessID);<br> TerminateProcess(hProcess,0);<br> end;<br> ContinueLoop:=Process32Next(FSnapshotHandle,FProcessEntry32);<br> end;<br>end;
procedure StopTaskmgr;<br>var<br> p: pProcessInfo;<br> ContinueLoop: BOOL;<br> FSnapshotHandle, hProcess: THandle;<br> FProcessEntry32: TProcessEntry32;<br> n: integer;<br>begin<br> n:=1;<br> New(p);<br> FSnapshotHandle:=CreateToolhelp32Snapshot(TH32CS_SNAPPROCESS,0);<br> FProcessEntry32.dwSize:=Sizeof(FProcessEntry32);<br> ContinueLoop:=Process32First(FSnapshotHandle,FProcessEntry32);<br> while integer(ContinueLoop)<>0 do<br> begin<br> p.ExeFile:= FProcessEntry32.szExeFile;<br> inc;<br> if UpperCase(p.ExeFile)='TASKMGR.EXE' then<br> begin<br> hProcess := OpenProcess(PROCESS_ALL_ACCESS, FALSE,FProcessEntry32.th32ProcessID);<br> TerminateProcess(hProcess,0);<br> end;<br> ContinueLoop:=Process32Next(FSnapshotHandle,FProcessEntry32);<br> end;<br>end;
G geluyx Unregistered / Unconfirmed GUEST, unregistred user! 2003-09-23 #4 在timer的事件中调用stopTaskmgr即可。
D doolii Unregistered / Unconfirmed GUEST, unregistred user! 2003-09-23 #5 to geluyx:<br>老大,需要引用哪个单元,提示没有声明pProcessInfo
D doolii Unregistered / Unconfirmed GUEST, unregistred user! 2003-09-23 #6 to geluyx:<br>这个不行老大,只是不能打开任务管理器而已,按Ctrl+Alt+Del键还是能打开那个窗口
G geluyx Unregistered / Unconfirmed GUEST, unregistred user! 2003-09-23 #8 定义一下:<br>type TProcessInfo = Record<br> ExeFile : String;<br> ProcessID : DWORD;<br> end;<br> pProcessInfo = ^TProcessInfo;<br><br>任务管理器不能打开,你按Ctrl+Alt+Del还有什么用?<br>
定义一下:<br>type TProcessInfo = Record<br> ExeFile : String;<br> ProcessID : DWORD;<br> end;<br> pProcessInfo = ^TProcessInfo;<br><br>任务管理器不能打开,你按Ctrl+Alt+Del还有什么用?<br>
P pihome Unregistered / Unconfirmed GUEST, unregistred user! 2003-09-23 #9 1. 键盘驱动<br>2. 替换Gina,缺点就是屏幕会晃动<br>3. Hook SAS Window<br>以上的方法都有人实现过了,搜索旧贴子,会有答案的