Re: [python-win32] mapi.ATTACH_EMBEDDED_MSG

2010-01-11 Thread Laurent Duchesne
Thanks, it's working now :) In case someone wants to know, I will be converting my .eml source file to a message object using this call: IConverterSession::MIMEToMAPI (outlook 2003+) http://msdn.microsoft.com/en-us/library/aa193062(office.11).aspx Since not all calls are available using

Re: [python-win32] Question concerning wmi c.CIM_DataFile

2010-01-11 Thread Mike Driscoll
On 1:59 PM, Tim Golden wrote: On 04/01/2010 21:18, Mike Driscoll wrote: The OP should check out Tim Golden's winshell module as it gives access to the common folders quite easily: http://timgolden.me.uk/python/winshell.html Thanks for the plug, Mike. Problem is that the OP is after running

[python-win32] Guaranteed cleanup code execution?

2010-01-11 Thread Ross Boylan
Is there a way to ensure that some cleanup code will get run whenever my process terminates? I've tried signal and try:finally:, while noting that, e.g., atexit says it doesn't handle interrupts. I can catch many circumstances, but if I kill the process from task manager my cleanup doesn't

Re: [python-win32] Guaranteed cleanup code execution?

2010-01-11 Thread Mario Alejandro Vilas Jerez
If your process is being terminated forcefully (like from the task manager) then you probably don't want to run any cleanup code. If you really must you could code something in C, put it in a DLL library and have it executed in DllMain when the library is unloaded. (And I think you'll still have