Udostępnij za pośrednictwem


IFileSyncProviderCallback::OnDetectFileSkipped

Occurs when a file or folder is not analyzed during change detection.

HRESULT OnDetectFileSkipped(
  LPCWSTR pcszSourceFilePath,
  DWORD dwReason,
  HRESULT hrErrorCode);

Parameters

  • pcszSourceFilePath
    [in, string] The path of the file that could not be analyzed during change detection. The path is relative to the root directory.
  • dwReason
    [in] The reason the file could not be analyzed during change detection. This value is from the FILESYNC_SKIP_REASON enumeration.
  • hrErrorCode
    [in] An error that was returned during the attempt to analyze the file. An error that is contained in this parameter will typically be returned by the file system to indicate that a problem has occurred while analyzing the change, such as a failure to obtain read access to the file.

Return Value

  • S_OK

Remarks

This event occurs one time for every file or folder that is not analyzed during change detection.

If OnDetectFileSkipped returns an error, Sync Framework stops processing the current change batch and returns the error from the method that initiated change detection.

See Also

Reference

IFileSyncProviderCallback Interface
FILESYNC_SKIP_REASON Enumeration