Compartilhar via


Creating a Cache Entry (Windows CE 5.0)

Send Feedback

An application uses the CreateUrlCacheEntry and CommitUrlCacheEntry functions to create a cache entry.

CreateUrlCacheEntry accepts the URL, expected file size, and file extension. The function then creates a local file name for saving the cache entry corresponding to the URL and file extension.

Using the local file name, write the data into the local file using standard C/C++ functions or Windows CE functions. After the data has been written to the local file, the application should call CommitUrlCacheEntry.

CommitUrlCacheEntry accepts the URL, local file name, expire and last modified times, cache entry type, header data and header data size, and file extension. The function then caches data in the file specified in the cache storage and associates it with the given URL.

See Also

Caching

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.