Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 14 of file display.c.
Referenced by DriverFilesCallback().
{ HANDLE hFile; FILETIME AccessTime; SYSTEMTIME SysTime, LocalTime; UINT Length; TIME_ZONE_INFORMATION TimeInfo; hFile = CreateFileW(pFullPath, GENERIC_READ, 0, NULL, OPEN_EXISTING, 0, NULL); if (!hFile) return FALSE; if (!GetFileTime(hFile, NULL, NULL, &AccessTime)) { CloseHandle(hFile); return FALSE; } CloseHandle(hFile); if(!GetTimeZoneInformation(&TimeInfo)) return FALSE; if (!FileTimeToSystemTime(&AccessTime, &SysTime)) return FALSE; if (!SystemTimeToTzSpecificLocalTime(&TimeInfo, &SysTime, &LocalTime)) return FALSE; Length = GetDateFormatW(LOCALE_USER_DEFAULT, DATE_SHORTDATE, &LocalTime, NULL, szTime, szTimeSize); szTime[Length-1] = L' '; return GetTimeFormatW(LOCALE_USER_DEFAULT, TIME_FORCE24HOURFORMAT, &LocalTime, NULL, &szTime[Length], szTimeSize-Length); }