Knowledge Base Nr: 00183 filecache.cpp - http://www.swe-kaiser.de

Downloads:

Win32: Cachen von Files (nur lesen wenn geändert)

  
WIN32_FILE_ATTRIBUTE_DATA fad;
BOOL bSucc = ::GetFileAttributesEx(WWWOUTPUT, GetFileExInfoStandard, &fad);
if (bSucc)
{
SYSTEMTIME now, filetime;

::GetSystemTime(&now);
FileTimeToSystemTime(&fad.ftLastWriteTime, &filetime);

if ((filetime.wDay == now.wDay) && (filetime.wMonth == now.wMonth) && (filetime.wYear == now.wYear))
return;
}