I have a simple program that just calls CreateMutex at startup. The problem
arises when I try to inject its code into another process (created with
CreateProcess using the flag CREATE_SUSPENDED).
In the injected process CreateMutex fails with ERROR_BAD_PATHNAME (161L), so
I'm wondering why it doesn't fail when the code is not injected.