Hallo Gary
GW> The well-behaved way is to send a WM_QUIT message to the
GW> application with the PostAppMessage API function. If you don't
GW> know the application's main window handle, there are several ways
GW> to find it. One is with the FindWindow API function.
There's even a FindWindowEx, I just spotted in Win32 API Help. I'd like to
hear about any usefull tricks in this field. For instance, how to
discriminate between several instances of a particular application? How to
find the one that was started first (if at all possible) ?
A colleague at work was messing with DDE sessions and some problems of this
nature arouse.
Groeten, Martin.
--- FMail/386 1.02
---------------
* Origin: -=[ E-mail: m_maat@knoware.nl .......... ]=- (2:286/420.1)
|