能否给出具体的代码段。我写了下面的代码段,是从网上查到的,稍微修改了一下,但总在 id:=strtoint('$'+'test.exe');报错。另外请帮我看一下后面的语句是否有问题,非常感谢
procedure TForm1.Button1Click(Sender: TObject);
var
processhndle:integer;
id:dword;
begin
id:=strtoint('$'+'test.exe');
processhndle:=openprocess(PROCESS_ALL_ACCESS,false,id);
terminateprocess(processhndle,0);
end;
procedure TForm1.Button1Click(Sender: TObject);
var
processhndle:integer;
id:dword;
begin
id:=strtoint('$'+'test.exe');
processhndle:=openprocess(PROCESS_ALL_ACCESS,false,id);
terminateprocess(processhndle,0);
end;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货