Tried to find a complete analog to the function SystemTimeToFileTime, but cannot find it.
I have all the SYSTEMTIME and FILETIME structures with correctly working SYSTEMTIME on linux for the date difference function:
int64_t Delta2(const SYSTEMTIME st1, const SYSTEMTIME st2) {
union timeunion { FILETIME fileTime; ULARGE_INTEGER ul; } ;
timeunion ft1;
timeunion ft2;
SystemTimeToFileTime(&st1, &ft1.fileTime);
SystemTimeToFileTime(&st2, &ft2.fileTime);
return ft2.ul.QuadPart - ft1.ul.QuadPart;
}
Anybody knows an exact replacement of the SystemTimeToFileTime function?
I suggest you consult the sources of the WINE project which will contain exactly what you need.