Share via


CachedRead (Compact 2013)

3/26/2014

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

See Also

Reference

Disk Cache Manager Functions