Sdílet prostřednictvím


FILESYNC_INIT_FLAGS Enumeration

Provides options to configure the behavior of the file synchronization provider.

typedef enum
{
    FILESYNC_INIT_FLAGS_NONE = 0x00000000,
    FILESYNC_INIT_FLAG_USE_HASHING = 0x00000001,
    FILESYNC_INIT_FLAG_RECYCLE_DELETED_FILES = 0x00000002,
    FILESYNC_INIT_FLAG_RECYCLE_PREVIOUS_FILE_ON_UPDATES = 0x00000004,
        FILESYNC_INIT_FLAG_RECYCLE_CONFLICT_LOSER_FILES = 0x00000008,
    FILESYNC_INIT_FLAG_DISABLE_IMPLICIT_DETECT_CHANGES = 0x00000010,
} FILESYNC_INIT_FLAGS;

Members

  • FILESYNC_INIT_FLAGS_NONE
    Use default configuration options of the provider. Setting any of the other flags overrides this setting. This is the default setting.
  • FILESYNC_INIT_FLAG_USE_HASHING
    Compute a hash value for each file that is based on the contents of the whole file stream, and use this value to compare files during change detection. This option provides more robust change detection; however, it is expensive and will slow synchronization. If this value is not set, an algorithm that compares modification times, file sizes, file names, and file attributes is used to determine whether a file has changed.
  • FILESYNC_INIT_FLAG_RECYCLE_DELETED_FILES
    Move files that were deleted during change application to the recycle bin. If this value is not set, files are permanently deleted.
  • FILESYNC_INIT_FLAG_RECYCLE_PREVIOUS_FILE_ON_UPDATES
    Move files that were overwritten during change application to the recycle bin. If this value is not set, files are overwritten, and any data in the old file is lost.
  • FILESYNC_INIT_FLAG_RECYCLE_CONFLICT_LOSER_FILES
    Move files that are conflict losers to the recycle bin. If this value is not set, the provider moves the files to a specified location. Or, if no location is specified, the files are permanently deleted.
  • FILESYNC_INIT_FLAG_DISABLE_IMPLICIT_DETECT_CHANGES
    Perform change detection only when IFileSyncProvider::DetectChanges is called. If this value is not set, change detection is implicitly performed on the first call to the provider's GetChangeBatch or ProcessChangeBatch method.

Remarks

A value that contains a combination of these options can be passed to IFileSyncProvider::Initialize to configure the way the file synchronization provider will handle different parts of the synchronization process.

Requirements

Header: Filesyncprovider.h

See Also

Concepts

Sync Framework File Synchronization Components