MAPI & PR_REPLICA_VERSION

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
Back
Top