Share via


FlushCache (Compact 2013)

3/26/2014

This function commits dirty blocks in the cache to the disk. This is only necessary for a write-back cache.

Syntax

DWORD FlushCache(
  DWORD dwCacheId, 
  PSECTOR_LIST_ENTRY pSectorList,
  DWORD dwNumEntries,
  DWORD dwFlushFlags
); 

Parameters

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

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

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

    Set to zero if flushing the entire cache.

  • dwFlushFlags
    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