我想为 .Net 应用程序编写进程同步

I want write process Synchronization for .Net application

我正在使用 AutomationElement 自动化我的 .net 应用程序我想为我的框架编写进程同步。有没有 WINAPI .net API 可以告诉我们进程是否忙或 not.I 正在使用 Windows 7 OS 和 .Net 4.0 框架..

此致, 拉吉

看看 WaitForInputIdle Win32 API 函数。

It waits until the specified process has finished processing its initial input and is waiting for user input with no input pending, or until the time-out interval has elapsed.