IContact::CommitChanges Method

Saves changes made to this contact to the contact file.

Syntax

HRESULT CommitChanges(      
    DWORD dwCommitFlags
);

Parameters

  • dwCommitFlags
    [in] Reserved parameter. Must be 0.

Return Value

Returns one of the following values:

S_OK Changes written to disk successfully.
E_UNEXPECTED Contact not loaded from a file path.
ERROR_SHARING_VIOLATION Another process modified the file in a way incompatible with changes to this contact.

Remarks

If the contact changes between creation and IContact::CommitChanges and an incompatible change was made on disk, may return ERROR_SHARING_VIOLATION.