我已经知道了进程的ID ProcessInfo.hProcess
用什么函数判断他是否还存在!!
用什么函数判断他是否还存在!!
解决方案 »
- 急求+跪求 TXLSFile library v4.0 for delphi7(不是demo的)
- 关于DBGrid的问题,谢谢各位高手了,急!!!!!!!!!!!
- 我在使用DLL的时候,调用里面的一个窗体,会在任务栏中显示,怎样不显示吗?
- 当鼠标在RichEdit上移动时,如何判断鼠标在RichEdit上的哪行?
- 有一个表,其中有 月份 字段,怎么写这样的sql语句:
- 如何将要填写的值传送到一个网页的输入框中
- Access数据为什么不支持*= 或 left outer join? 有方法解决吗?(SQL Server支持的)
- delphi和oracle 做的程序(c/s版),如何在另外的机器上面执行?
- Nizvoo(瓦匠泥) 加我 qq:38311346
- 请教Query?
- delphi7中没有fastnet,该怎么添加,或能用什么代替,谢谢回复!
- 中级程序员加Delphi应用开发认证(中级)能找到好工作吗?
function isHung(theWindow: HWnd; timeOut: Longint): Boolean;stdcall;
var
dwResult: DWord;
begin
Result := SendMessageTimeout(theWindow,
WM_NULL,
0,
0,
SMTO_ABORTIFHUNG Or SMTO_BLOCK,
timeOut,
dwResult) <> 0;
end;
var
TargetThreadId:Dword;
TargetProcessId:Dword;
begin
if iswindow(targetWnd) then
begin
TargetThreadId:=GetWindowThreadProcessId(TargetWnd,TargetProcessId);
result := TargetProcessId;
end
else
result:=$0;
end;
h:=openprocess(PROCESS_ALL_ACCESS,True,Id);MSDN里的
Return Values
If the function succeeds, the return value is an open handle of the specified process.
If the function fails, the return value is NULL. To get extended error information, call GetLastError.