In Windows Mobile I am using FindFirstFile/FindNextFile to search for some files. As part of the results I am getting a WIN32_FIND_DATA structure which contains one search result. This structure contains 3 FILETIME structures for file creation, last write and last access times.
Then I am converting these structures to SYSTEMTIME using FileTimeToSystemTime function. My problem starts here. In the SYSTEMTIME structure hour field does not match the real hour field from the time. I figure out WM is making an adjustment based on time zone and daylight savings time.
For example if time is created on 5:44:30 and I am on GMT +1, SYSTEMTIME structure reports 4:44:30.
I would like to know if anybody has any ideas how to get real time values before this adjustment?