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