Brunov's blog

Sergey Vyacheslavovich Brunov's blog

MAPI IMAPIProp SaveChanges call

2011-03-10 09:04:31 Moscow time

My application creates a contact, sets properties and saves changes, after that it could not get the last modification time (MAPI_E_NO_ACCESS).
It seems that IMAPIProp::SaveChanges() member function should not be called with FORCE_SAVE flag (for the compatibility reasons with Outlook version less than 2003) if there is further property reading.
Use KEEP_OPEN_READWRITE instead.

Tags: cpp mapi