问题描述
1。当我创建CreateMutex(NULL,FALSE,MutexName)时,我间歇性地获得访问被拒绝的错误;这个电话有时会非常好。行为不一致。 MSDN文档说用户访问权限有限时引发的错误?
这里的用户权限是什么?我使用具有管理员权限的域帐户?
2.另外,MSDN文档说"如果lpMutexAttributes参数不是NULL,则确定句柄是否可以"是继承的,但忽略了它的安全描述符成员。"如何在createmutex调用中指定安全描述符?为什么同步
选项可用于openmutex()不可用于createmutex()?我在这里得到了什么根本错误吗?
谢谢。
1. I get access is denied error intermittently when I make CreateMutex(NULL, FALSE, MutexName); The call works absolutely fine sometimes. The behavior is not consistent. MSDN documentation says that the error thrown when user had limited access rights? What should be user rights here? I use a domain account that had admin privileges?
2. Also, the MSDN documentation says "If the lpMutexAttributes parameter is not NULL, it determines whether the handle can be inherited, but its security-descriptor member is ignored.". How do I specify security descriptor in createmutex call? Why is synchronize option that is available for openmutex() is not available for createmutex()? Am I getting anything fundamentally wrong here?
Thanks.
推荐答案
这篇关于CreateMutex() - 访问被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!