Get a list of mutex?

前端 未结 2 1680
青春惊慌失措
青春惊慌失措 2021-02-04 05:22

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 pro

2条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-04 06:00

    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%
    

提交回复
热议问题