Export (0) Print
Expand All
Expand Minimize

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.

Note  WinINet does not support server implementations. In addition, it should not be used from a service. For server implementations or services use Microsoft Windows HTTP Services (WinHTTP).

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Wininet.h

Library

Wininet.lib

DLL

Wininet.dll

Unicode and ANSI names

UnlockUrlCacheEntryFileW (Unicode) and UnlockUrlCacheEntryFileA (ANSI)

See also

Caching
WinINet Functions

 

 

Show:
© 2014 Microsoft