Export (0) Print
Expand All
Expand Minimize

SYNCMGR_HANDLER_POLICIES enumeration

Enumerates policies specified by a sync handler that deviate from the default policy.

Syntax


typedef enum SYNCMGR_HANDLER_POLICIES { 
  SYNCMGR_HPM_NONE                  = 0x00000000,
  SYNCMGR_HPM_PREVENT_ACTIVATE      = 0x00000001,
  SYNCMGR_HPM_PREVENT_DEACTIVATE    = 0x00000002,
  SYNCMGR_HPM_PREVENT_ENABLE        = 0x00000004,
  SYNCMGR_HPM_PREVENT_DISABLE       = 0x00000008,
  SYNCMGR_HPM_PREVENT_START_SYNC    = 0x00000010,
  SYNCMGR_HPM_PREVENT_STOP_SYNC     = 0x00000020,
  SYNCMGR_HPM_DISABLE_ENABLE        = 0x00000100,
  SYNCMGR_HPM_DISABLE_DISABLE       = 0x00000200,
  SYNCMGR_HPM_DISABLE_START_SYNC    = 0x00000400,
  SYNCMGR_HPM_DISABLE_STOP_SYNC     = 0x00000800,
  SYNCMGR_HPM_DISABLE_BROWSE        = 0x00001000,
  SYNCMGR_HPM_DISABLE_SCHEDULE      = 0x00002000,
  SYNCMGR_HPM_HIDDEN_BY_DEFAULT     = 0x00010000,
  SYNCMGR_HPM_BACKGROUND_SYNC_ONLY,
  SYNCMGR_HPM_VALID_MASK
} SYNCMGR_HANDLER_POLICIES;

Constants

SYNCMGR_HPM_NONE

No handler policy flags are set.

SYNCMGR_HPM_PREVENT_ACTIVATE

Activation of the handler is not supported at the time of the call. This value can be used by a handler to implement support for group policy that prevents the handler from being activated. If this value is set, the Setup task is not be shown in the Setup Sync folder when this handler is selected. The handler should provide a comment—returned from its implementation of ISyncMgrHandlerInfo::GetComment—to let the user know why the Setup task is not available. Most handlers should not set this value.

SYNCMGR_HPM_PREVENT_DEACTIVATE

Deactivation of the handler is not supported at the time of the call. This value can be used by a handler to implement support for group policy that prevents the handler from being deactivated. If this value is set, the Delete task is not shown in the Sync Center folder when this handler is selected. The handler should provide a comment—returned from its implementation of ISyncMgrHandlerInfo::GetComment—to let the user know why the Setup task is not available. Most handlers should not set this value.

SYNCMGR_HPM_PREVENT_ENABLE

The handler normally supports enable, but cannot be enabled because of handler policy. If this flag is set, the Enable option will not be displayed on the context menu.

SYNCMGR_HPM_PREVENT_DISABLE

The handler normally supports disable, but cannot be enabled because of handler policy. If this flag is set, the Disable option will not be displayed on the context menu.

SYNCMGR_HPM_PREVENT_START_SYNC

The handler normally supports sync, but cannot be synchronized because of handler policy. If this flag is set, the Start Sync option will not be displayed on the context menu or the command bar.

SYNCMGR_HPM_PREVENT_STOP_SYNC

The handler normally supports sync, but cannot be synchronized because of handler policy. If this flag is set, the Stop Sync option will not be displayed on the context menu or the command bar.

SYNCMGR_HPM_DISABLE_ENABLE

The handler normally supports enable, but cannot be enabled at the time of the call. The Enable option will be displayed but will be disabled.

SYNCMGR_HPM_DISABLE_DISABLE

The handler normally supports disable, but cannot be disabled at the time of the call. The Disable option will be displayed but will be disabled.

SYNCMGR_HPM_DISABLE_START_SYNC

The handler normally supports syncing, but cannot be synchronized at the time of the call. The Start Sync option will be displayed but will be disabled.

SYNCMGR_HPM_DISABLE_STOP_SYNC

The handler normally supports cancel, but cannot be canceled at the time of the call. The Stop Sync option will be displayed but will be disabled.

SYNCMGR_HPM_DISABLE_BROWSE

The handler normally supports cancel, but cannot be canceled at the time of the call. The Browse option will be displayed but will be disabled.

SYNCMGR_HPM_DISABLE_SCHEDULE

The handler normally supports cancel, but cannot be canceled at the time of the call. The Show Schedule option will be displayed but will be disabled.

SYNCMGR_HPM_HIDDEN_BY_DEFAULT

The handler should be hidden from the user unless the Show Hidden Files option has been enabled. This policy only applies the first time that the handler is loaded. After that, the hidden state is maintained by Sync Center and can be changed by the user through the property sheet. The hidden state is available in the folder UI as the System.Sync.Hidden (PKEY_Sync_Hidden) property.

SYNCMGR_HPM_BACKGROUND_SYNC_ONLY

The user is not offered Sync and Stop tasks in the UI. This is equivalent to SYNCMGR_HPM_PREVENT_START_SYNC | SYNCMGR_HPM_PREVENT_STOP_SYNC.

SYNCMGR_HPM_VALID_MASK

A mask used to retrieve valid SYNCMGR_HANDLER_POLICIES flags.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Syncmgr.h

IDL

Syncmgr.idl

 

 

Community Additions

ADD
Show:
© 2014 Microsoft