在用OpenMutex( DWORD dwDesiredAccess,  
               BOOL bInheritHandle,    
               LPCTSTR lpName)第一个参数有两个值: MUTEX_ALL_ACCESS, SYNCHRONIZE
它们分别是什么意思呢. 起到什么作用呢?谢谢

解决方案 »

  1.   

    MUTEX_ALL_ACCESS (0x1F0001)  All possible access rights for a mutex object. Use this right only if your application requires access beyond that granted by the standard access rights and MUTEX_MODIFY_STATE. Using this access right increases the possibility that your application must be run by an Administrator.
    SYNCHRONIZE (0x00100000L)  The right to use the object for synchronization. This enables a thread to wait until the object is in the signaled state.
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/synchronization_object_security_and_access_rights.asp