1,183
社区成员




procedure TForm1.Button2Click(Sender: TObject);
var
a:integer;
c, pid:longword;
begin
a:=findwindow('mingup',0);
pid:=GetWindowThreadProcessId(a);
c:=OpenProcess(PROCESS_ALL_ACCESS, False,pid);
Edit2.Text:=inttostr(c);
if (c=0) then begin
showmessage('呀么跌') ;
end;
end;
end.