J
jackyrong
Unregistered / Unconfirmed
GUEST, unregistred user!
在一篇文章上说API有个未公开的API registerserviceprocess,<br>说通过调用可以隐藏任务,使CTRL+ALT+DEL时也看不到,<br>但给出的代码如下,却不能执行,为何?<br>unit winjingchen;<br><br>interface<br>function registerserviceprocess(dwprocessid,dwtype:integer):integer;<br>stdcall;<br>external 'kernel32.dll';<br><br>uses<br> Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,<br> StdCtrls;<br><br>type<br> TForm1 = class(TForm)<br> Button1: TButton;<br> Button2: TButton;<br> procedure Button1Click(Sender: TObject);<br> procedure Button2Click(Sender: TObject);<br> private<br> { Private declarations }<br> public<br> { Public declarations }<br> end;<br><br>var<br> Form1: TForm1;<br><br>implementation<br><br>{$R *.DFM}<br><br>procedure TForm1.Button1Click(Sender: TObject);<br>begin<br>registerserviceprocess(getcurrentprocessid,0);<br><br>end;<br><br>procedure TForm1.Button2Click(Sender: TObject);<br>begin<br> registerserviceprocess(getcurrentprocessid,1);<br><br>end;<br><br>end.<br>