J
jingtao
Unregistered / Unconfirmed
GUEST, unregistred user!
有以下一条程序,编译时pTask : PTaskEntry出错,why?<br><br>(运行此程序前请保存所有修改过的文件)<br>procedure TForm1.ButtonKillAllClick(Sender: TObject);<br>var<br> pTask : PTaskEntry;<br> Task : Bool;<br> ThisTask: THANDLE;<br>begin<br> GetMem (pTask, SizeOf (TTaskEntry));<br> pTask^.dwSize := SizeOf (TTaskEntry);<br><br> Task := TaskFirst (pTask);<br> while Task do<br> begin<br> if pTask^.hInst = hInstance then<br> ThisTask := pTask^.hTask<br> else<br> TerminateApp (pTask^.hTask, NO_UAE_BOX);<br> Task := TaskNext (pTask);<br> end;<br> TerminateApp (ThisTask, NO_UAE_BOX);<br>end;<br>