title: Correct way to ensure single instance and pass on arguments for Windows c++ console application
body: <p>I’m writing a simple Windows console c++ application. If the application is started a second time (on the same computer) it should not span an new instance but pass command line arguments to the instance already running.</p>
  
  <p>I have accomplished to ensure that the application only runs in one instance by using mutex but I am unable to notify the first application that it has been started as second time and pass on command line arguments.</p>
  
  <p>Use case:<br>
  <code>listener.exe -start</code> // starts listener<br>
  <code>listener.exe -stop</code> // stops listener</p>