Atlanta Custom Software Development 

 
   Search        Code/Page
 

User Login
Email

Password

 

Forgot the Password?
Services
» Web Development
» Maintenance
» Data Integration/BI
» Information Management
Programming
  Database
Automation
OS/Networking
Graphics
Links
Tools
» Regular Expr Tester
» Free Tools

IsFileInCache - Check whether a file is in the Internet cache

Total Hit ( 2995)

Rate this article:     Poor     Excellent 

 Submit Your Question/Comment about this article

Rating


 


Click here to copy the following block
Private Declare Function GetUrlCacheEntryInfo Lib "wininet.dll" Alias _
  "GetUrlCacheEntryInfoA" (ByVal sUrlName As String, lpCacheEntryInfo As Any, _
  lpdwCacheEntryInfoBufferSize As Long) As Long

' Check whether the file identified by the URL passed as parameter
' is present in the Internet cache

' Example:
'  MsgBox "File is saved in cache: " & IsFileInCache
' ("http://www.vb2themax.com/vbmaximizer/demo.asp")
'  MsgBox "File is saved in cache: " & IsFileInCache
' ("http://www.vb2themax.com/mbgallery/intro.asp")

Function IsFileInCache(ByVal sURL As String) As Boolean
  Const ERROR_INSUFFICIENT_BUFFER = 122
  Dim dwEntrySize As Long
  If (GetUrlCacheEntryInfo(sURL, ByVal 0&, dwEntrySize)) = 0 Then
    If (Err.LastDllError = ERROR_INSUFFICIENT_BUFFER) Then
      IsFileInCache = True
    End If
  End If
End Function


Submitted By : Nayan Patel  (Member Since : 5/26/2004 12:23:06 PM)

Job Description : He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting.
View all (893) submissions by this author  (Birth Date : 7/14/1981 )


Home   |  Comment   |  Contact Us   |  Privacy Policy   |  Terms & Conditions   |  BlogsZappySys

© 2008 BinaryWorld LLC. All rights reserved.