2. Go into the array, subtract one from the current offset, and you have the previous instance.
Both of these are valid answers to your question, and probably of no help whatsoever. Please don't take offense at this; I'm just trying to make a point. You'll want to make your question a lot more specific to get an answer you can use.
Say, run an exe trice, in the second instance of the exe, I need to do something in the first instance of the same exe. So, in the second instance, I want to get the long handle number of the first instance (the window's handle or the app's handle?).
Good! Then you can use an ActiveX Exe, and you don't need to try to look for handles. All you need to do is create an activeX EXE with a property that references another instance of the same class.
That said, you might also be able to do it all in the same process with an ActiveX DLL. Is there a specific reason why you need to have two processes (i. e. two separate exe's)?
If you haven't a clue what I'm talking about, bear with me. You really should know about this stuff if you want to do what you're describing, and I can point you to places where you can learn more about it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.