0

I'm developing a simple win32 application with two processes sharing memory through a file mapping. At a certain point in the second process, I want to check if the other process has already closed the handle associated to the file mapping. Is there a Windows function to retrieve the number of handles associated to my shared memory??? Thanks in advance for any help...

4

1 回答 1

0

API 中没有任何内容可以做到这一点。如果您想知道其他进程何时完成其工作,请使用CreateEventEx创建一个手动重置事件,并让其他进程在其工作完成时设置该事件。第一个进程可以使用其中一个等待函数来查询事件的状态。

于 2013-05-20T21:39:38.670 回答