C# - how can I get owner's name for a Mutex

核能气质少年 提交于 2019-11-28 07:37:03

问题


I have a shared mutex between 2 applications. I want to create an administration console that shows the current owner's name of the mutex.

How can I get the application name that currently owns the Mutex?


回答1:


I do not believe this is possible at the user mode level. You will have to install a driver or kernel plugin in order to get this information.

It's almost the same question as asking "what process opened this file"?



来源:https://stackoverflow.com/questions/541477/c-sharp-how-can-i-get-owners-name-for-a-mutex

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!