> 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.

<<attachment: winmail.dat>>

_______________________________________________
Python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to