ResizeCache (Windows CE 5.0)
This function resizes a cache by reducing or expanding its size.
DWORDResizeCache(DWORDdwCacheId, DWORDdwSize,DWORD dwResizeFlags);
Parameters
dwCacheId
[in] Cache ID value returned by CreateCache.dwSize
[in] New number of blocks for the cache.dwResizeFlags
[in] This value can be set to CACHE_FLAG_WARM to warm the cache. This preloads the cache, starting with the dwStart value, until the cache is filled.Otherwise, the entire cache is reset after resizing and anything cached prior to resizing is erased.
Return Values
Returns ERROR_SUCCESS on success.
Returns a Microsoft Win32 error code on failure.
Remarks
If a request is made to expand a cache when there is not enough memory, the cache retains its original size and is not modified.
The cache is flushed prior to resizing, and all cached entries are lost.
Requirements
OS Versions: Windows CE 5.0 and later.
Header: Fsdmgr.h.
Link Library: Fsdmgr.lib.
See Also
Send Feedback on this topic to the authors