Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
拥有一个像这样的过程的句柄:
HANDLE hProcess = OpenProcess( PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, FALSE, processID );
如何注册此流程更新事件 - 如关闭\重启?是否可以报名参加重复活动(启动第二个相同的流程)?
进程句柄在它们代表的进程退出时发出信号。因此,要找出进程何时退出,您可以传递hProcess给WaitForSingleObject或任何其他等待函数。
hProcess
WaitForSingleObject