Anyone know why the MUTEX_ALL_ACCESS constant (to be used with OpenMutex) isn't defined in the asm .inc's? What's its value so I can start using it?
Posted on 2002-01-07 07:53:39 by Test
MUTEX_ALL_ACCESS was only a description as far i know
(don't have a api-ref right now)... i think it means that all
mutex functions are allowed to use your mutex-handle.

i think you can use CreateMutex, too to open a named(?)
mutex...



CALL _M01
DB "blablabla",0
_M01: PUSH 1
PUSH 0
CALL [ _CREATEMUTEX ]
CALL [ _GETLASTERROR ]
TEST EAX, EAX
JNZ MUTEX_EXIST
.
.
.
MUTEX_EXIST:
Posted on 2002-01-07 08:05:17 by mob
Ok, thanks for the reply. So are you aware of any way this can be done through OpenMutex, the prefered way, using MUTEX_ALL_ACCESS? Also, what do you mean by "just a description"? I went to the MS site and their snippets effectively use the MUTEX_ALL_ACCESS symbol together with OpenMutex.
Posted on 2002-01-07 09:12:02 by Test
you're right, seems that this value is missing in
windows.inc... i never used OpenMutex before...
so... try to find this value in the c++ header file
(windows.h) <- i don't have api-ref nor c++
installed right now so my hands are tied...
Posted on 2002-01-07 09:18:59 by mob
Hi.

Here they come !

#define MUTANT_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED|SYNCHRONIZE|\
MUTANT_QUERY_STATE)

#define MUTEX_ALL_ACCESS MUTANT_ALL_ACCESS

Regards,
Posted on 2002-01-07 09:26:52 by JCP
Many thanks!!! It worked as far as I can see!!
Posted on 2002-01-07 17:25:50 by Test