Implement the enforcement of a single instance of the application
When user opens a new instance of the application, it first needs to check to see if another instance is already open within current Windows user login session. If so, get the handle of that existing process and send a message "WM_REUSE_INSTANCE" to handle whatever command line parameters were called (such as open file, new file, new connection, etc.).
Implement the enforcement of a single instance of the application
When user opens a new instance of the application, it first needs to check to see if another instance is already open within current Windows user login session. If so, get the handle of that existing process and send a message "WM_REUSE_INSTANCE" to handle whatever command line parameters were called (such as open file, new file, new connection, etc.).