Re: [python-win32] COM server and function parameters

2008-10-01 Thread ricercar
At 09.19 02/10/2008 +1000, you wrote: >Just return a string - pythoncom will do the SysAllocString() for you. >Please see the 'pippo' examples in the win32com directory - they show how to >hookup a typelib with your com object implementation. It's incredible how simple is the answer, I searched a

Re: [python-win32] COM server and function parameters

2008-10-01 Thread Mark Hammond
> Hi all, > this is my first time here. I looked into the archive but found no > answer to > a question that probably is simple (I hope). > I need to implement a COM server and I got the interface in IDL format. > Unfortunately to me some functions have a declaration like this: > > HRESULT func([i

[python-win32] Outlook 2007 through COM. Wrong count in Outbox. Stale Object?

2008-10-01 Thread Vinay Anantharaman
Hi, I am trying to automate sending and receiving using win32com. I execute the SendAndRecieve() function. The synchronization events indicate that messages were sent. However, the Outbox count indicates there are messages still there. I manually open Outlook and look at the UI and it indicates the

[python-win32] COM server and function parameters

2008-10-01 Thread ricercar
Hi all, this is my first time here. I looked into the archive but found no answer to a question that probably is simple (I hope). I need to implement a COM server and I got the interface in IDL format. Unfortunately to me some functions have a declaration like this: HRESULT func([in] BSTR param1,

Re: [python-win32] NT service and login prompt

2008-10-01 Thread Tim Golden
le dahut wrote: Yes, I was trying to intercept user's logon. I've done it using userinit registry key, a python NT service and a python service running on the PDC. My problem is also that the service has to be available at logon time to do some administrative stuff. It seems that the policy

Re: [python-win32] NT service and login prompt

2008-10-01 Thread le dahut
Tim Golden wrote : Larry Bates wrote: le dahut wrote: Hello, Is it possible to tell windows to wait a python service has started before the login prompt is displayed ? Probably not, but why would you want to implement something that does? Share your use case with us and perhaps we can be

Re: [python-win32] NT service and login prompt

2008-10-01 Thread Tim Golden
Larry Bates wrote: le dahut wrote: Hello, Is it possible to tell windows to wait a python service has started before the login prompt is displayed ? Probably not, but why would you want to implement something that does? Share your use case with us and perhaps we can be of more assistance.