This topic is now archived and is closed to further replies.

Zeblar Nagrim


Recommended Posts

SiCrane    11839
Microsoft recommends converting FILETIME structures to ULARGE_INTEGER structures before manipulating them. (Essentially the same as LONGLONG, except unsigned). IIRC, you can turn the FILETIMEs to ULARGE_INTEGERs, subtract them, convert the result back to a FILETIME, then you can use FileTimeToSystemTime to turn the result into SYSTEMTIME structure, where the difference in hours should be the wHour member variable.

Share this post

Link to post
Share on other sites