WrapPST sample causes Outlook 2003 to crash if ServiceEntry fails

C

Chris

I'm following the WrapPST sample posted on Stephen Griffin's MSDN blog to
programmatically create wrapped PST stores in the current Outlook session.
Everything is working great apart from where I am trying to block stores from
being manually created when a user goes to File->New->Outlook Data File in
Outlook.

In ServiceEntry, I'm intercepting the MSG_SERVICE_CREATE and
MSG_SERVICE_CONFIGURE contexts and returning an error (e.g.
MAPI_E_NO_SUPPORT) if either a window handle is provided to ServiceEntry or
if the SERVICE_UI_ALLOWED flag is passed through. This successfully blocks
the request in Outlook 2007, but causes Outlook 2003 to crash.

If I force the WrapPST sample code itself to return an error it too causes
Outlook 2003 to crash.

Does anybody know why this would happen? I've tried returning various MAPI
error codes, but they all cause Outlook 2003 to crash. Note that I'm using
Outlook 2003 SP3.

Thanks in advance,

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top