IFileSyncMergeHandler::Merge method (shobjidl_core.h)

Merges changes between the local copy and server copy of a file.

Syntax

HRESULT Merge(
  [in]  LPCWSTR             localFilePath,
  [in]  LPCWSTR             serverFilePath,
  [out] MERGE_UPDATE_STATUS *updateStatus
);

Parameters

[in] localFilePath

Type: LPCWSTR

A pointer to a string containing the path to the local copy of the file.

[in] serverFilePath

Type: LPCWSTR

A pointer to a string containing the network path to the server copy of the file.

[out] updateStatus

Type: MERGE_UPDATE_STATUS*

When this method returns, contains a pointer to one of the following values indicating status of the merge process.

MUS_COMPLETE

Indicates that the process has completed successfully.

MUS_USERINPUTNEEDED

Indicates that additional input is required by the user for the process to complete.

MUS_FAILED

Indicates that the process has failed.

Return value

Type: HRESULT

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows 8.1 [desktop apps only]
Minimum supported server Windows Server 2012 R2 [desktop apps only]
Target Platform Windows
Header shobjidl_core.h (include Shobjidl.h)

See also

IFileSyncMergeHandler