Partager via


FSDMGR_CachedRead (Compact 2013)

3/26/2014

If the specified block is cached, this function copies data from the 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.

It is called by File System Disk Manager (FSDMGR) for disk cache.

Syntax

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

Parameters

  • dwBlockNum
    [in] Starting block from which to read.
  • dwNumBlock
    [in] Number of blocks to read.
  • pBuffer
    [out] Pointer to the buffer to which to copy data.
  • 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

FSDMGR Functions
FSD Functions