The IMAPISupport::ModifyProfile method makes changes to a message store profile section permanent.
HRESULT ModifyProfile(
ULONG ulFlags
);
The IMAPISupport::ModifyProfile method is implemented for message store provider support objects. Message store providers call ModifyProfile to prompt MAPI to modify their profile information.
ModifyProfile adds the profile section associated with the calling provider to the list of installed message store provider resources. This causes the message store to be listed in the message store table, available to clients through the IMAPISession::GetMsgStoresTable method, and to be opened without the display of a dialog box.
If the MDB_TEMPORARY flag is set, MAPI does nothing and the method returns immediately with S_OK.
IMAPISession::GetMsgStoresTable