[python-win32] get MAPI session from OOM

ckkart at hoc.net ckkart at hoc.net
Wed May 30 14:23:43 EDT 2018


Am 2018-05-27 14:58, schrieb c.kristukat at hoc.net:
> ------ Originalnachricht ------
> Von: timr at probo.com
> An: "Python-Win32 List" <python-win32 at python.org>
> Gesendet: 26.05.2018 21:54:36
> Betreff: Re: [python-win32] get MAPI session from OOM
> 
>> On May 26, 2018, at 5:21 AM, ckkart at hoc.net wrote:
>>> 
>>> on a 64bit windows 7 machine with pywin32 221 I used to get a pointer 
>>> to the MAPI session like this
>>> 
>>> outlook.GetNamespace('MAPI').Session.MAPIOBJECT.QueryInterface(mapi.IID_IMAPISession)
>>> 
>>> on a fresh windows 10 machine with pywin32 221 this fails with
>>> 
>>> pywintypes.com_error: (-2147467259, 'Unknown error', None, None)
>> 
>> Is this a fresh Windows 10 machine that includes a copy of Microsoft 
>> Outlook?
> 
> Yes, exactly. I moved my office 16 license to the new machine which
> had office 365 pre-installed.
> 

Any ideas? Do you think it will help to do a fresh install of office 
2016?

Regards, Christian


More information about the python-win32 mailing list