because when your dll is loaded into you program, each will have an
instance of that mutex. actually i do not understand why you want to
protect your program from calling the same function at the same time.
when you program loads your dll, each program has an instance of your
dll. so the function your program calling at runtime is not the same
one.
one reason i can figure out why you want to do this is because the
function in your dll is trying to access some shared data, like a file
on the system. in this case, you should try to make sure your function
access your data one after the other, instead of trying to make sure
the function is called one after the other.
--
Best Regards,
David Shen
http://twitter.com/davidshen84/
http://meme.yahoo.com/davidshen84/