Share via


FlushCache (Windows Embedded CE 6.0)

1/6/2010

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
Windows Embedded CE Windows CE 5.0 and later

See Also

Reference

Disk Cache Manager Functions