다음을 통해 공유


CachedRead (Windows CE 5.0)

Send Feedback

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.

DWORDCachedRead(DWORDdwCacheId, DWORDdwBlockNum,DWORD dwNumBlocks,PVOID pBuffer,DWORD dwReadFlags);

Parameters

  • dwCacheId
    [in] Cache ID value returned by CreateCache.
  • 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 Values

Returns ERROR_SUCCESS on success.

Returns a Microsoft Win32 error code on failure.

Requirements

OS Versions: Windows CE 5.0 and later.
Header: Fsdmgr.h.
Link Library: Fsdmgr.lib.

See Also

Cache Manager Functions

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.