It looks for other instances of SciTE director by sending the "SciTEInstanceIdentifier" message to all top level windows. If a SciTE instance is prepared to accept files, then it responds positively and is sent two commands through WM_COPYDATA: cwd to set the current directory and then the command line. The code appears to not send to SciTE instances on other desktops. It probably won't work on Terminal Server. It could go wrong if your shell application attempts to insert itself into the windows of subprocesses, perhaps to provide global features like a global system menu.
Much of the code is in win32/UniqueInstance.cxx and you could try attaching a debugger. Neil _______________________________________________ Scite-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scite-interest
