FSDMGR_FlushCache (Windows Embedded CE 6.0)
1/6/2010
This function is called by File System Disk Manager for a disk cache to commit dirty blocks in the cache to the disk. This is necessary only for a write-back cache.
Syntax
DWORD FSDMGR_FlushCache(
DWORD dwCacheId,
PSECTOR_LIST_ENTRY pSectorList,
DWORD dwNumEntries,
DWORD dwFlushFlags
);
Parameters
- dwCacheId
[in] Cache ID value returned by the FSDMGR_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 |