manipulating child processes under Windows

Syver Enstad syver-en+usenet at online.no
Wed Jun 5 07:41:13 EDT 2002


Douglas Alan <nessus at mit.edu> wrote in message news:<lcy9duhksg.fsf at gaffa.mit.edu>...
> Syver Enstad <syver-en+usenet at online.no> writes:
> 
> > Hmm, my first reaction is to think in terms of window handles in
> > some way, there's a FindWindow function in win32 (and win32all) that
> > let's you search for a window by name, I'll have to check the msdn
> > library to find out how to get the owning process handle from a
> > window handle.
> 
> What if there were more than one process with the same name.  How
> would I tell which one is the right one?

The FindWindow function doesn't search for the ProcessName it uses the
window title, which is often unique. Hope that helps.



More information about the Python-list mailing list