CfSetInSyncState function (cfapi.h)
Sets the in-sync state for a placeholder file or folder.
Syntax
HRESULT CfSetInSyncState(
[in] HANDLE FileHandle,
[in] CF_IN_SYNC_STATE InSyncState,
[in] CF_SET_IN_SYNC_FLAGS InSyncFlags,
[in, out, optional] USN *InSyncUsn
);
Parameters
[in] FileHandle
A handle to the placeholder. The caller must have WRITE_DATA or WRITE_DAC access to the placeholder.
[in] InSyncState
The in-sync state. See CF_IN_SYNC_STATE for more details.
[in] InSyncFlags
The in-sync state flags. See CF_SET_IN_SYNC_FLAGS for more details.
[in, out, optional] InSyncUsn
This parameter needs to be a NULL pointer.
Return value
If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
| Minimum supported client | Windows 10, version 1709 [desktop apps only] |
| Minimum supported server | Windows Server 2016 [desktop apps only] |
| Target Platform | Windows |
| Header | cfapi.h |
| Library | CldApi.lib |
| DLL | CldApi.dll |