Hide a process in the kill task menu
2005-08-21 21:35
337 查看
注:此程序只能在WIN9X下运行,WINDOWS NT以下操作系统的KERNEL32.DLL文件已不包含API函数RegisterServiceProcess;
How can I hide my application in the Ctrl+Alt+Del menu? You need to use RegisterServiceProcess, which has to be imported from the kernel. See the following example: unit Unit1; Interface uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,StdCtrls; type TForm1 = class (TForm) Button1 : TButton; procedure FormDestroy (Sender: TObject); procedure FormCreate (Sender: TObject); private { private declarations } public { public declarations } end; var Form1 : TForm1; implementation {$R *.DFM} const RSPSIMPLESERVICE = 1; RSPUNREGISTERSERVICE = 0; function RegisterServiceProcess(dwProcessID, dwType: DWord) : DWord; stdcall; external 'KERNEL32.DLL'; procedure TForm1.FormDestroy(Sender: TObject); begin RegisterServiceProcess(GetCurrentProcessID, RSPUNREGISTERSERVICE) end; procedure TForm1.FormCreate (Sender: TObject); begin RegisterServiceProcess (GetCurrentProcessID, RSPSIMPLESERVICE) end; end.
相关文章推荐
- How do I hide a menu item in the actionbar?
- about to search or kill the process and the port in the linux
- Hide the common top menu in Ubuntu 12.04
- hide the task bar and input panel in Windows Mobile
- The Method OF Kill Given Process In Guest OS From VMM
- ios在真机上调试时出现“Error launching remote program: failed to get the task for process xxx"解决办法
- C++: How is the process of function calling in C++
- How to get the password text in a text with password property from another process using C++ - 用C++如何从不同进程获取密码框文本
- XCode4.5免证书真机调试解决 failed to get the task for process xxx
- 真机调试Error launching remote program: failed to get the task for process xxx.
- hide a service in the service tab隐藏服务
- 报错:failed to get the task for process XXX(解决方案)
- Check the state of child process./thread in java
- taskkill /f /t /im processName
- 报错:failed to get the task for process
- How can I hide a user from the Welcome Screen in Windows XP?
- sql express 2008 - Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instan
- How to hide an entry in the Add/Remove Programs applet?
- process Launch Failed:failed to Get the Task for Process XXXX(解决方案)
- The 12th tip of DB Query Analyzer, powerful in text file process