p***o 发帖数: 1252 | 1 你的需求是啥?没法open自然能检测出来:
OpenMutex
Return Value
...
If a named mutex does not exist, the function fails and GetLastError returns
ERROR_FILE_NOT_FOUND.
还有这一段:
If your multi-threaded application must repeatedly create, open, and close
a named mutex object, a race condition can occur. In this situation, it is b
etter to use CreateMutex instead of OpenMutex, because CreateMutex opens a m
utex if it exists and creates it if it does not. |
|