[python-win32] How do you find the Windows process ID of a COM server?
marcus at internetnowasp.net
Sat Feb 16 18:17:48 CET 2008
This wont work on Vista. FindWindow is no longer an acceptable api to use.
----- Original Message -----
From: "Tim Roberts" <timr at probo.com>
To: "Python-Win32 List" <python-win32 at python.org>
Sent: Thursday, February 14, 2008 3:14 AM
Subject: Re: [python-win32] How do you find the Windows process ID of a COM
> Salim Fadhley wrote:
>> This is all new stuff to me. At the moment I do not have a handle to
>> the Excel window, nor do I know how to get that. Presumably this is
>> something that I can extract from the COM server?
> No, unfortunately. However, you can use the FindWindow API to do this.
> It searches for windows by class and title. The Excel window class is
>> This window handle of which you speak - is it anything more than a COM
>> object that represents the Window object of the Excel application?
> Yes. The world of window handles is different from the world of COM,
> and Microsoft has actually made it rather different to move from one to
> the other.
> Tim Roberts, timr at probo.com
> Providenza & Boekelheide, Inc.
> python-win32 mailing list
> python-win32 at python.org
More information about the python-win32