I'd like to know a way to do the following:
App starts, no forms created. 2nd App instance starts, it detects one instance is already running (this is sorted already)
I want 2nd instance to send the 1st one a message, without using BROADCAST; Id like a way to find a handle to the 1st instance to send it the message directly.
The 1st instance must have a class name to be found with that the 2nd one hasn't yet created, so that it won't send the message to itself.
How would I use FindWindow in this scenario? How do I create a window-less class/object identifiable by FindWindow?
FindWindowfinds a window by either class name or caption, so it can't find anything that is windowless. (That's why the function is calledFind**Window**). It also returns a window handle - if it could find something that was windowless, what would it return?AllocateHWnd, it's not windowless, is it? And you specifically asked about usingFindWindowto find a windowless application. "How di I create a window-less class/object identifiable by FindWindow?" were your exact words.