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. |
This function creates a local file name for saving the cache entry based on the specified URL and the file extension.
Syntax
BOOL CreateUrlCacheEntry( LPCTSTR lpszUrlName, DWORD dwExpectedFileSize, LPCTSTR lpszFileExtension, LPTSTR lpszFileName, DWORD dwReserved ); |
Parameters
- lpszUrlName
-
[in] Address of a string variable that contains the source name of the cache entry. The name string must be unique and should not contain any escape characters.
- dwExpectedFileSize
-
[in] Unsigned long integer value that contains the expected size of the file needed to store the data corresponding to the source entity. If the expected size is unknown, set this value to zero.
- lpszFileExtension
-
[in] Address of a buffer that contains information maintained in the cache database for future use.
- lpszFileName
-
[out] Address of a buffer that receives the file name. The buffer should be large enough (MAX_PATH) to store the path of the created file.
- dwReserved
-
[in] Reserved. Must be set to zero.
Return Value
Returns TRUE if successful, or FALSE otherwise.
Remarks
After this function is called, the application can write directly into the file in local storage. When the file is completely received, you should call CommitUrlCacheEntryto commit the entry in the cache.
Requirements
Header | wininet.h |
Library | wininet.lib |
Windows Embedded CE | Windows CE 2.12 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |