[python-win32] Extended MAPI : ConfigureMsgService Problem

Mark Hammond mhammond at skippinet.com.au
Mon Jan 17 22:03:11 CET 2005


> The code is pretty clearly defined in C on MSDN, but when translated to
Python,
> it fails when configuring services within the created profile.

I have got past your immediate stumbling-block, just to hit another.

> One possible issue is with the serviceUID, which when viewed in the IDE is
> [}YÆ8PÍEÅ-4ÂfY] which looks pretty interesting.

It seems very likely that this is a GUID encoded as a binary buffer (being
16 bytes (128 bits) long):

Adding:

  serviceUID = pythoncom.MakeIID(serviceUID, 1)
  print "now is", serviceUID

Results in:

now is {607D544A-A7BF-412D-8EC7-E376FF96572C}
Traceback (most recent call last):
  File "\temp\make_profile.py", line 41, in ?
    serviceAdmin.ConfigureMsgService(serviceUID, 0, 0, propsTuple) # <- !!!
FAILS HERE !!!
pywintypes.com_error: (-2147221233, 'OLE error 0x8004010f', None, None)


0x8004010f is MAPI_E_NOT_FOUND.  This is as far as I got.

Mark.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 2252 bytes
Desc: not available
Url : http://mail.python.org/pipermail/python-win32/attachments/20050118/9f4de962/winmail.bin


More information about the Python-win32 mailing list