[python-win32] Getting active SMTP servers via python.

2008-12-10 Thread Dominick Lauzon
I am attempting to determine the accessible SMTP servers on a given desktop to avoir various users for having to predefine in a given script to facilitate distribution. Is this possible ? Dominick Lauzon ing. Ingénieur d'application Sr / Sr Application Engineer

Re: [python-win32] Getting active SMTP servers via python.

2008-12-10 Thread Tim Golden
Dominick Lauzon wrote: I am attempting to determine the accessible SMTP servers on a given desktop to avoir various users for having to predefine in a given script to facilitate distribution. Can you clarify what you mean by the accessible SMTP servers? If you're connected to the internet,

[python-win32] Passing data in a windows message

2008-12-10 Thread Tim Golden
I'm using win32gui.PyGetBufferAddressAndLen to pass the address length of a marshalled object as the wparam / lparam of a windows message. Something like this: address, length = \ win32gui.PyGetBufferAddressAndLen (buffer (marshal.dumps (message))) PostMessage (self.hwnd,

Re: [python-win32] Getting active SMTP servers via python.

2008-12-10 Thread Tim Roberts
Dominick Lauzon wrote: I am attempting to determine the accessible SMTP servers on a given desktop to avoir various users for having to predefine in a given script to facilitate distribution. Is this possible ? No. There is no way to determine this a priori, and many commercial

Re: [python-win32] Passing data in a windows message

2008-12-10 Thread Thomas Heller
Tim Golden schrieb: I'm using win32gui.PyGetBufferAddressAndLen to pass the address length of a marshalled object as the wparam / lparam of a windows message. Something like this: address, length = \ win32gui.PyGetBufferAddressAndLen (buffer (marshal.dumps (message))) I guess that the

Re: [python-win32] Passing data in a windows message

2008-12-10 Thread Tim Roberts
Thomas Heller wrote: Since you used PostMessage, the message is simply posted to the thread's message queue. You have no control when it is processed; so I fear you must keep the posted 'object' alive even longer. This is a good point that I overlooked. If you used SendMessage, it would

Re: [python-win32] Passing data in a windows message

2008-12-10 Thread Tim Golden
Tim Roberts wrote: Thomas Heller wrote: Since you used PostMessage, the message is simply posted to the thread's message queue. You have no control when it is processed; so I fear you must keep the posted 'object' alive even longer. This is a good point that I overlooked. If you used