I assume you’re building for Windows? If so then see this thread. It discusses how to use a mutex to detect when another instance of your app is already running, and an IPCSocket to communicate between the first instance and subsequent instances of your app.