Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

HrOpenExchangePublicStore - Outlook 2007

78 views
Skip to first unread message

Karl

unread,
Jan 18, 2007, 5:26:00 AM1/18/07
to
Hi,

HrOpenExchangePublicStore doesn't work with Outlook 2007 - can anyone shed
any light on this - returns 0x800b0001. Works OK on Outlook 2003.

Cheers
Karl

Stephen Griffin [MSFT]

unread,
Jan 18, 2007, 10:01:33 AM1/18/07
to
In Outlook 2007, the public folder store isn't added to the store table
until you open the mailbox store the first time. After that, subsequent use
of the profile will have the public folder in the table.

I'm guessing you're creating a brand new profile and trying to go directly
to the public folder store. Open the mailbox first and your code should
work.

Dmitry had a thread on this earlier, but I can't find it...

"Karl" <ka...@nospam.nospam> wrote in message
news:9F81FB72-82CD-4494...@microsoft.com...

Dmitry Streblechenko

unread,
Jan 18, 2007, 11:56:29 AM1/18/07
to
After opening the primary mailbox, don't forget to call
HrDispatchNotifications() to make sure the stores table
(IMAPISession::GetMsgStoresTable) gets updated.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Stephen Griffin [MSFT]" <sgri...@online.microsoft.com> wrote in message
news:OE%23YMGxO...@TK2MSFTNGP03.phx.gbl...

Karl

unread,
Jan 26, 2007, 9:46:02 AM1/26/07
to
Dmitry,

I've never come across this before. Is this something we should be doing on
all programmatically create profiles and sessions after we've opened the
mailbox store? In some instances the profile is very short lived and just
used to verify a user address or public folder for example.

We're a server based application that creates a profile and logons to the
mailbox. We use this session to access any mailbox on the server using
CreateStoreEntryID and OpenMsgStore.

Regards
Karl

Dmitry Streblechenko

unread,
Jan 26, 2007, 12:09:35 PM1/26/07
to
Starting with Outlook 2007 when ou are trying to access the PF store
immediately - yes.
If you do not need to access it immediately and your app iss running a
message loop, you'll be fine as the stores table will update itself when
"row added" notification is received. In your case however,
HrDispatchNotifications is a must.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Karl" <ka...@nospam.nospam> wrote in message
news:2C497893-6B8E-4D0D...@microsoft.com...

0 new messages