MAPI & PR_REPLICA_VERSION

G

Guest

Hello,
i need to figure out which ms exchange server version is used from outlook.
Previously I used the following mapi code to do so:

//msgStore is the default MsgStore (Mailbox)
hRes = msgStore->OpenEntry(
NULL,
NULL,
NULL,
MAPI_BEST_ACCESS,
&objectType,
(LPUNKNOWN*)&lpRootCont);


LPSPropValue* lpProp = NULL;
hRes = HrGetOneProp(lpMAPIProp, PR_REPLICA_VERSION, &lpProp);
//lpProp contains then the necessary infos about the used Exchange Server.

Unfortunately the PR_REPLICA_VERSION property doesn't exist if Outlook 2003
has activated for the Mailbox the "Cached Exchange Mode" (TO check this
feature in Outlook 2003 make a right click on your Mailbox and follow the
following path: Mailbox->Properties->Advanced->Advanced). Does anybody know a
different way ot determine the running exchange server version via mapi?
I checked also the existence of the PR_REPLICA_VERSION property via Outlook
Spy. And when ever u activate / deactivate the "Cached Exchange Mode" the
property disappears / appears, therfore it is not a mistake in my code!

I am really thankful for any help!

Juergen
 

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