Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This function resizes a cache.

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

Syntax

DWORD FSDMGR_ResizeCache(
	DWORD dwCacheId,
	DWORD dwSize,
	DWORD dwResizeFlags
);

Parameters

dwCacheId

[in] Cache ID value returned by the FSDMGR_CreateCachefunction.

dwSize

[in] New number of blocks for the cache.

dwResizeFlags

[in] This parameter can be set to CACHE_FLAG_WARM to preload the cache, starting with location set in the dwStartparameter of FSDMGR_Create, until the cache is filled.

Otherwise, the entire cache is reset after resizing, and anything cached prior to resizing is erased.

Return Value

ERROR_SUCCESS indicates success. A standard Windows API error code indicates 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

Header fsdmgr.h
Library Fsdmgr.lib
Windows Embedded CE Windows CE 5.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

FSD Functions

Other Resources