UnlockUrlCacheEntryFile function
Unlocks the cache entry that was locked while the file was retrieved for use from the cache.
Syntax
BOOLAPI UnlockUrlCacheEntryFile( _In_ LPCTSTR lpszUrlName, _In_ DWORD dwReserved );
Parameters
- lpszUrlName [in]
-
Pointer to a null-terminated string that specifies the source name of the cache entry that is being unlocked. The name string should not contain any escape characters.
- dwReserved [in]
-
This parameter is reserved and must be 0.
Return value
Returns TRUE if successful, or FALSE otherwise. To get extended error information, call GetLastError. ERROR_FILE_NOT_FOUND indicates that the cache entry specified by the source name is not found in the cache storage.
Remarks
The application should not access the file after calling this function.
When this function returns, the cache manager is free to delete the cache entry.
Like all other aspects of the WinINet API, this function cannot be safely called from within DllMain or the constructors and destructors of global objects.
Requirements
|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows 2000 Server [desktop apps only] |
|
Header |
|
|
Library |
|
|
DLL |
|
|
Unicode and ANSI names |
UnlockUrlCacheEntryFileW (Unicode) and UnlockUrlCacheEntryFileA (ANSI) |
See also