Home All Groups Group Topic Archive Search About
Author
12 May 2009 5:27 AM
Jeff McKay

Does anybody have any positive experience with "stand alone MAPI" aka
"Microsoft Exchange Server MAPI Client and Collaboration Data Objects"
which can be downloaded at

http://www.microsoft.com/downloads/details.aspx?FamilyID=e17e7f31-079a-43a9-bff2-0a110307611e&DisplayLang=en

The purpose of this product as I understand it is to provide MAPI
functionality on
machines which do not have Outlook installed.  I want to install it on a XP
machine and use it to open and read .pst files.  What I have found is that
it works
only with non-Unicode .pst files.  If I try to call CreateMsgService with a
service
name of "MSUPST MS" I get a return of MAPI_E_NOT_FOUND.  It does work with a
value of "MSPST MS".   However, I can open only non-Unicode pst files this
way - if I try to open a Unicode pst file with "MSPST MS", then OpenMsgStore
fails
with error MAPI_E_UNCONFIGURED.

A MAPI driver with such a limitation seems kind of useless, so I'm hoping I
have it installed wrong or there is something I can do to configure it
properly -
any ideas?

Author
12 May 2009 8:07 AM
SvenC
Hi Jeff,

> Does anybody have any positive experience with "stand alone MAPI" aka
> "Microsoft Exchange Server MAPI Client and Collaboration Data Objects"
> which can be downloaded at
>
> http://www.microsoft.com/downloads/details.aspx?FamilyID=e17e7f31-079a-43a9-bff2-0a110307611e&DisplayLang=en
>
> What I have found is that it (PST files) works only with non-Unicode .pst
> files.

Yes, only ANSI pst files are supported.

You will need Outlook 2003/2007 to get a MAPI subsystem which handles
Unicode pst files.

--
SvenC
Are all your drivers up to date? click for free checkup

Author
12 May 2009 8:21 AM
David Lowndes
Show quote Hide quote
>What I have found is that
>it works
>only with non-Unicode .pst files.  If I try to call CreateMsgService with a
>service
>name of "MSUPST MS" I get a return of MAPI_E_NOT_FOUND.  It does work with a
>value of "MSPST MS".   However, I can open only non-Unicode pst files this
>way - if I try to open a Unicode pst file with "MSPST MS", then OpenMsgStore
>fails
>with error MAPI_E_UNCONFIGURED.
>
>A MAPI driver with such a limitation seems kind of useless, so I'm hoping I
>have it installed wrong or there is something I can do to configure it
>properly -
>any ideas?

The profile methods are "well know" (if you know about it) to not work
in Unicode: http://www.ureader.com/msg/147531.aspx

For example, in an otherwise Unicode Exchange server gateway project I
have horrible code like this:

// Casts used here as although the function sig is TCHAR, it only
works in ANSI
    hr = MAPICALL(lpServiceAdmin)->CreateMsgService(
        lpServiceAdmin,
        (LPTSTR) pszAnsiKey,
        (LPTSTR) pszAnsiValue,
        /*fMapiUnicode*/0,
        0);

Dave

Bookmark and Share