|
ATLTIME_INLINE BOOL WINAPI CTime::IsValidFILETIME(const FILETIME& fileTime) throw()
{
FILETIME localTime;
if (!FileTimeToLocalFileTime(&fileTime, &localTime))
{
return FALSE;
}
// then convert that time to system time
SYSTEMTIME sysTime;
if (!FileTimeToSystemTime(&localTime, &sysTime))
{
return FALSE;
}
return TRUE;
} |
|