implementation

function RegisterServiceProcess(dwProcessID, dwType: DWord) : DWord; stdcall;
external 'KERNEL32.DLL';

{$R *.DFM}
procedure TForm1.Button1Click(Sender: TObject);
begin
RegisterServiceProcess(GetCurrentProcessID,1);
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
RegisterServiceProcess(GetCurrentProcessID,0);
end;

4 Responses so far.

  1. the tricks is not running in windows 7 or windows vista..how do if i want to running win win7?

Post a Comment

Thank you for your comment.

Any request and idea are welcome.

CLICK TO REGISTER