Does FltQueryInformationFile with FILE_BASIC_INFORMATION as the FILE_INFORMATION_CLASS, is the time retrieved in the current locale or must I also call ExSystemTimeToLocalTime to ensure the time is local not GMT?
From the MSDN sample:
// Retrieve the file times for the file.
if (!GetFileTime(hFile, &ftCreate, &ftAccess, &ftWrite))
return FALSE;
// Convert the last-write time to local time.
FileTimeToSystemTime(&ftWrite, &stUTC);
So, if even the syscall of GetFileTime returns UTC, then the kernel stuff surely works with UTC only.
–
Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com
wrote in message news:xxxxx@ntfsd…
> Does FltQueryInformationFile with FILE_BASIC_INFORMATION as the FILE_INFORMATION_CLASS, is the time retrieved in the current locale or must I also call ExSystemTimeToLocalTime to ensure the time is local not GMT?
>
thanks.
Is it ok for the source and destination to be the same address? Something like this:
ExSystemTimeToLocalTime( &fileBasicInformation.LastAccessTime, &fileBasicInformation.LastAccessTime );