FSDMGR_CachedRead (Windows Embedded CE 6.0)

1/6/2010

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

See Also

Reference

FSDMGR Functions
FSD Functions