A
angel725
Unregistered / Unconfirmed
GUEST, unregistred user!
取计算器的进程句柄<br>procedure TForm1.Button1Click(Sender: TObject);<br>var<br> a:Thandle;<br> pid:longword;<br> jb:integer;<br>begin<br> a:=FindWindow('SciCalc',nil);<br> GetWindowThreadProcessId(a,pid);<br> jb:=OpenProcess(PROCESS_ALL_ACCESS,True,pid);<br> edit1.text:=inttostr(jb);<br>end;<br><br>取到的结果是一个4位数,<br>不知道我的程序有错没??