How does `CF_INSYNC_POLICY_NONE` differ from `CF_INSYNC_POLICY_PRESERVE_INSYNC_FOR_SYNC_ENGINE`? (cfapi)

oknick 101 Reputation points
2022-03-05T20:53:52.843+00:00

For a CF_INSYNC_POLICY, the fields CF_INSYNC_POLICY_NONE and CF_INSYNC_POLICY_PRESERVE_INSYNC_FOR_SYNC_ENGINE are both two separate values. I know the latter prevents the platform from clearing the in sync state at all, but how does this differ from the former policy?

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,523 questions
0 comments No comments
{count} votes

Accepted answer
  1. Xiaopo Yang - MSFT 12,231 Reputation points Microsoft Vendor
    2022-03-21T01:59:14.95+00:00

    Hello, @oknick

    CF_INSYNC_POLICY_NONE = 0, it means non in-sync policy is set. However, CF_INSYNC_POLICY_PRESERVE_INSYNC_FOR_SYNC_ENGINE is a flag used to exempt all of the other policies. It can be a kind of switch or flag to temporarily disable the existing policies without removing the policies. Just set/clear the flag can disable/enable the in-sync policies.

    0 comments No comments

0 additional answers

Sort by: Most helpful