Share via


SyncCache (Compact 2013)

3/26/2014

This function updates the cache by reading from the disk for each cache block, while maintaining the mapping between a cache block and a disk block.

Syntax

DWORD SyncCache(
  DWORD dwCacheId, 
  PSECTOR_LIST_ENTRY pSectorList,
  DWORD dwNumEntries,
  DWORD dwSyncFlags
); 

Parameters

  • dwCacheId
    [in] Cache ID value returned by the CreateCache function.
  • pSectorList
    [in] Pointer to a sector list describing ranges of sectors to sync.

    If this value is set to NULL, the entire cache is synchronized.

  • dwNumEntries
    [in] Number of entries in the sector list.

    Set to zero if synchronizing the entire cache.

  • dwSyncFlags
    Not used.

Return Value

ERROR_SUCCESS indicates success. A Microsoft Win32 error code indicates failure.

Requirements

Header

fsdmgr.h

Library

Fsdmgr.lib

See Also

Reference

Disk Cache Manager Functions