简体   繁体   中英

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM