I am attempting to send over the FILETIME of a file to my server, which is written in C#. From there, I can use the function DateTime.FromFileTime() to parse the file's time. I am aware there is a Win32 API called GetFileTime(), but in the interest of saving lines of code, I was wondering if it was possible to use std::filesystem and somehow convert it to FILETIME?
I have tried casting like so:
f.lastwrite = entry.last_write_time();
But this cast is not allowed, unfortunately. Is it possible to convert the last_write_time() to FILETIME so it can be sent over, or is that not possible?