Click to Rate and Give Feedback
MSDN
MSDN Library
Networking
Network Protocols
Windows Internet
WinINet Reference
WinINet Functions
 DeleteUrlCacheEntry Function
DeleteUrlCacheEntry Function

Removes the file associated with the source name from the cache, if the file exists.

Syntax

C++
BOOLAPI DeleteUrlCacheEntry(
  __in  LPCTSTR lpszUrlName
);

Parameters

lpszUrlName [in]

Pointer to a string that contains the name of the source that corresponds to the cache entry.

Return Value

Returns TRUE if successful, or FALSE otherwise. To get extended error information, call GetLastError. Possible error values include the following.

Return codeDescription
ERROR_ACCESS_DENIED

The file is locked or in use. The entry is marked and deleted when the file is unlocked.

ERROR_FILE_NOT_FOUND

The file is not in the cache.

 

Requirements

Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
VersionInternet Explorer 3.0 or later
HeaderWininet.h
LibraryWininet.lib
DLLWininet.dll
Unicode and ANSI namesDeleteUrlCacheEntryW (Unicode) and DeleteUrlCacheEntryA (ANSI)

See Also

Caching
WinINet Functions

Send comments about this topic to Microsoft

Build date: 11/19/2009

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
vb.net syntax      dmex   |   Edit   |   Show History
<DllImport("wininet.dll", CharSet:=CharSet.Auto, SetLastError:=True)> _
Public Shared Function DeleteUrlCacheEntry(ByVal lpszUrlName As String) As Boolean
End Function
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker