I'm creating a mock object to test my application so that it works at the boundary conditions of time. I'm using FILETIME
in the Windows SDK.
The link shows the earliest time which is January 1, 1601 (I'm assuming midnight 00:00:00 and both dwLowDateTime
and dwHighDateTime
are 0x00000000
), so I have that. What is the latest possible FILETIME?
My first instinct is to set dwLowDateTime
and dwHighDateTime
to 0xFFFFFFFF
, but then I questioned if that really is a valid time that I need to test, due to where my linked page says the SetFileTime
function uses 0xFFFFFFFF
to specify that a file's previous access time should be preserved.