GetSystemTimeAsFileTime gives the time in 100s of nanoseconds since 1 jan 1600 and the code accounts for that. But the difference to epoch time is in microseconds and is subtracted before the conversion of FILETIME to microseconds. This causes an integer overflow on windows 7 x64 (only tested there).
GetSystemTimeAsFileTime gives the time in 100s of nanoseconds since 1 jan 1600 and the code accounts for that. But the difference to epoch time is in microseconds and is subtracted before the conversion of FILETIME to microseconds. This causes an integer overflow on windows 7 x64 (only tested there).