Hi Code-Dwarf 😉
well, I think divide and conquer is the best thing.
Problems:
a) Detect that an other instance is already running
b) Make message transfer possible between this Apps
c) Properly transmit the own command line parameters
d) Bring first instance to the front
Questions:
What of this have you solved?
Are these all problems that are list above?
Solutions (for me):
a) Mutex and Check for this
b) RegisterWindowsMessage -> For MessageID and HWND_BROADCAST to get an Handle for c)
c) WM_COPYDATA for Transmit command line data
d) Bring Application to the front and reshow
Hope this will help you