The following code has been suggested to me to get a handle to Outlook's
mapi session.


from win32com.client import Dispatch
from win32com.mapi import mapi
app = Dispatch('Outlook.Application')
app.GetNamespace('MAPI').Session.MAPIOBJECT

The MAPIOBJECT would then have to be cast to a IMAPISession object. How
would I do that? By calling the PyIMAPISesison constructor with MAPIOBJECT
as argument? Unfortunately I was not able to find the PyIMAPISession class
in the pywin32 namespace nor when digging through the source.

<PyIUnknown at 0x020D0F20 with obj at 0x003A53DC>

Any hints are very much appreciated.

Christian

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

Reply via email to