I am trying named system mutex approach to synchronize two processes-
When the mutex is created,
Since you want to share a mutex across sessions you must use either the Global
namespace, or create your own private namespace.
As it stands, you are not specifying a namespace. And whilst the service defaults to use the global namespace, your interactive application will be using the local namespace.