输出调试字符串捕获
在上一个问题中,我询问是否存在 dbgview 的实时增强版本, 并最终尝试编写自己的,效果很好,除了一个小障碍
OpenMutex(MUTEX_ALL_ACCESS, FALSE, "DBWinMutex")
返回该互斥锁的句柄,除了它在 windows2003 上返回 NULL 之外,任何人都知道为什么 可能是这样吗?
In a previous question I asked about if any real-time enhanced versions of dbgview exist,
and ended trying to write my own, which worked out well except for one small snag
OpenMutex(MUTEX_ALL_ACCESS, FALSE, "DBWinMutex")
returns a handle to this mutex, except it returns NULL on windows2003 , anyone know why
this might be the case ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
互斥体不一定存在。例如,OutputDebugString 尝试创建它,而不是打开它。
详细信息请参见:http://www.unixwiz.net/techtips/outputdebugstring.html
The mutex doesn't necessarily exist. e.g. OutputDebugString attempts to create it, rather than open it.
Details here: http://www.unixwiz.net/techtips/outputdebugstring.html
以防万一,我在尝试在 MEX 文件中使用开放互斥体时遇到了类似的权限问题。
这对我有用:
Just in case, I faced similar permission issue when trying to use open mutex in MEX file.
This worked for me: