且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

C# - 我如何能得到所有者的名称为互斥

更新时间:2023-11-13 22:41:28

我不相信这是可能在用户模式下的水平。您必须安装驱动程序或内核插件,以获得这些信息。



这几乎就像问哪些进程打开此文件?


同样的问题

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?

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"?