This wont work on Vista. FindWindow is no longer an acceptable api to use.

----- Original Message ----- 
From: "Tim Roberts" <[EMAIL PROTECTED]>
To: "Python-Win32 List" <python-win32@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 
server?


> 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
> "XLMAIN".
>
>
>> 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, [EMAIL PROTECTED]
> Providenza & Boekelheide, Inc.
>
> _______________________________________________
> python-win32 mailing list
> python-win32@python.org
> http://mail.python.org/mailman/listinfo/python-win32 


_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to