Partager via


CachedRead (Windows Embedded CE 6.0)

1/6/2010

If the specified block is cached, this function copies data from cache into a buffer.

If the specified block is not cached, this function reads the data from the disk and copies it into a buffer along with the cache.

Syntax

DWORD CachedRead(
  DWORD dwCacheId, 
  DWORD dwBlockNum,
  DWORD dwNumBlocks,
  PVOID pBuffer,
  DWORD dwReadFlags
); 

Parameters

  • dwCacheId
    [in] Cache ID value returned by the CreateCache function.
  • dwBlockNum
    [in] Starting block to read from.
  • dwNumBlocks
    [in] Number of blocks to read.
  • pBuffer
    [out] Pointer to the buffer to copy data to.
  • dwReadFlags
    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