I\'m trying to pass a mutex handle, to a child process trough command line, or any other way.
How can I do that? How do I acess the mutex from the child?
Th
Either create the mutex before creating the child process and make it inheritable (set bInheritHandle to TRUE in the lpMutexAttributes parameter for CreateMutex). This way you can pass the handle in the command line.
Or use DuplicateHandle and pass the handle via some other mechanism (e.g. use a pipe as STDIN for the child process).