none
Can I force to call MAPILogonEx in Non-Cachemode? RRS feed

  • Question

  • Hi All,

     Can I call MAPILogonEx( ULONG_PTR ulUIParam,  LPSTR lpszProfileName,  LPSTR lpszPassword,   FLAGS flFlags,   LPMAPISESSION FAR * lppSession ) in non cache mode always. Is there a way to force MAPILogonEX to be called with NoCacheExchange mode. Any sample code would greatly helpful. (I don't want to use UI to change the Non cache mode).

    I want to make something like this.

    if (condition)

        MAPILogonEx(in cache mode)

    else

       MAPILogonEx(in Non cache mode)

    Thanks

    Santhi

     


    • Edited by Santhi R Monday, June 10, 2013 2:24 PM
    Monday, June 10, 2013 1:32 PM

Answers

  • Before logging in, open the global profile section for that profile and remove the CONFIG_OST_CACHE_PRIVATE flag (2 bits!) from the PR_PROFILE_CONFIG_FLAGS property.

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    • Marked as answer by Santhi R Tuesday, June 11, 2013 1:23 PM
    Monday, June 10, 2013 6:35 PM

All replies

  • Before logging in, open the global profile section for that profile and remove the CONFIG_OST_CACHE_PRIVATE flag (2 bits!) from the PR_PROFILE_CONFIG_FLAGS property.

    Dmitry Streblechenko (MVP)
    http://www.dimastr.com/redemption
    Redemption - what the Outlook
    Object Model should have been
    Version 5.5 is now available!

    • Marked as answer by Santhi R Tuesday, June 11, 2013 1:23 PM
    Monday, June 10, 2013 6:35 PM
  • Thanks a lot Dmitry. That worked.
    Tuesday, June 11, 2013 1:23 PM