Patrick
Patrick

Reputation: 381

Get a list of mutex?

A program creates a mutex as part of its start-up. I don't know the format of this mutex so I wondered if there is a way to get a list of all non-abandoned mutex, open the program, get a new list and see if I can find the mutex by removing all duplicate entries.

Is there a way to get this list?

Upvotes: 18

Views: 37209

Answers (3)

ravenspoint
ravenspoint

Reputation: 20576

The named mutexes ( "Mutant" ) will display in the right hand pane. There will be a lot of them!

Upvotes: 4

grenix
grenix

Reputation: 743

If you have WinObj.exe it is likely that you also have handle.exe which is also from the SysInternals-Suite.

Occasionally I found

handle -a |findstr /C:Mutant /C:pid:

to be helpful. This also displays unnamed Mutexes.

BTW: If you dont want to rely on the output format compatibility (I used version v3.51) you should capture the whole output of handle -a and search manually or use

handle -a -p %YOUR_PID%

Upvotes: 8

Roger Lipscombe
Roger Lipscombe

Reputation: 91885

If you're on Windows, WinObj can show you named mutexes. Or you can use Process Explorer to find out which objects a specific process has open.

Upvotes: 19

Related Questions