I am looking at using context menus in windows to either send file names or folders to my program. However if the program is already open, rather than sending this information to a new instance I would like to have the running instance receive the data. This data will obviously be passed via the command line, but I am wondering how to you get STRING DATA to another instance? I have looked at MUTEXs but they don't really seem to have a way to do this, so maybe a custom windows message?? ie. Store data in a buffer in the new instance and then send a custom message to the original instance passing the address of this buffer to it, so that it can access the data?
Is there a better or safer way of doing this (without using a disk file for data passing)?
Anyone have any thoughts on this, or have done something similar?
Is there a better or safer way of doing this (without using a disk file for data passing)?
Anyone have any thoughts on this, or have done something similar?
Comment