Ack, okay, I've tested this here and there are some outstanding issues I didn't see eyeballing the code. I'll get them myself and push a branch rather than making you do more work though.
* The tests for "same second" need to use round() rather than int()
* GetFileInformationByHandleEx/FILE_BASIC_INFO is Vista-or-later (hence LARGE_INTEGER usage, it's just FILETIME with better struct-packing on 64bit).
I'll replace that with SetFileTime, shout if you can think of a reason not to.
Ack, okay, I've tested this here and there are some outstanding issues I didn't see eyeballing the code. I'll get them myself and push a branch rather than making you do more work though.
* The tests for "same second" need to use round() rather than int() ionByHandleEx/ FILE_BASIC_ INFO is Vista-or-later (hence LARGE_INTEGER usage, it's just FILETIME with better struct-packing on 64bit).
* GetFileInformat
I'll replace that with SetFileTime, shout if you can think of a reason not to.